我正在尝试使用wp\\u enqueue\\u脚本加载jquery ui。我可以检查jquery是否已加载。jquery ui已注册,即var\\u dump的输出(wp\\u script\\u是(\'jquery ui tabs\',\'registered\');为bool(true),表示已注册,但未包含在页面中。
我正在使用wordpress版本3.3.1
出了什么问题?
我附上函数的相关片段。php来自我的主题。
<?php
function my_scripts_method() {
wp_register_script(\'jquery\');
wp_register_script(\'jquery-ui-core\');
wp_register_script(\'jquery-ui-tabs\');
}
add_action(\'wp_enqueue_scripts\', \'my_scripts_method\');
?>