Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
wp_enqueue_scripts() - do_action( 'wp_enqueue_scripts' ) 的封装器 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / wp_enqueue_scripts()

wp_enqueue_scripts()

do_action( 'wp_enqueue_scripts' ) 的封装器


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "83a93cbba58fcaf30c9a6f90bd9cb328" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "2d55252fc1d8979bc0f45a023733e4d4" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

enqueue 引入js/css

scriptmore...


描述

允许插件使用wp_enqueue_script()为前端引入脚本。首先在wp_head()中运行,其中所有is_home()、is_page()等功能都可用。



源码

查看源码 官方文档


更新日志

版本描述
2.8.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194