WordPress开发者和主题制作者的搜索引擎



wp_enqueue_scripts ›

Since2.8.0
已弃用n/a
wp_enqueue_scripts ( 没有参数 )
定义在:
文档:

Wrapper for do_action('wp_enqueue_scripts')

Allows plugins to queue scripts for the front end using wp_enqueue_script(). Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.



源码

function wp_enqueue_scripts() {
	/**
	 * Fires when scripts and styles are enqueued.
	 *
	 * @since 2.8.0
	 */
	do_action( 'wp_enqueue_scripts' );
}