wp_default_packages

函数


wp_default_packages ( $scripts )
参数
  • (WP_Scripts)
    $scripts
    WP_Scripts object.
    Required:
定义位置
  • wp-includes/script-loader.php
    , line 624
引入
5.0.0
弃用

Registers all the WordPress packages scripts.

function wp_default_packages( $scripts ) {
	wp_default_packages_vendor( $scripts );
	wp_register_development_scripts( $scripts );
	wp_register_tinymce_scripts( $scripts );
	wp_default_packages_scripts( $scripts );

	if ( did_action( 'init' ) ) {
		wp_default_packages_inline_scripts( $scripts );
	}
}