This question already has answers here: How can I get a list of all enqueued scripts and styles? (5 answers) Closed 5 years ago.admin管理员组文章数量:1022169
I am new to php and am just learning the basics. I'm dequeuing some stylesheets & scripts in WordPress using the following code:
function dequeue_scripts() {
wp_dequeue_script( 'handle' );
}
add_action( 'wp_print_scripts', 'dequeue_scripts' );
My question is how do I know what the script's / stylesheet's handle name is? Where can I find it?
I appreciate any help!! :)
This question already has answers here: How can I get a list of all enqueued scripts and styles? (5 answers) Closed 5 years ago.I am new to php and am just learning the basics. I'm dequeuing some stylesheets & scripts in WordPress using the following code:
function dequeue_scripts() {
wp_dequeue_script( 'handle' );
}
add_action( 'wp_print_scripts', 'dequeue_scripts' );
My question is how do I know what the script's / stylesheet's handle name is? Where can I find it?
I appreciate any help!! :)
Share Improve this question asked Apr 29, 2019 at 18:53 jade newportjade newport 251 silver badge5 bronze badges 1 |1 Answer
Reset to default -1WordPress provides a list of the scripts they enqueue in the Codex. That's a good place to start.
Take a look at this question for a more complete answer: How can I get a list of all enqueued scripts and styles?
This question already has answers here: How can I get a list of all enqueued scripts and styles? (5 answers) Closed 5 years ago.I am new to php and am just learning the basics. I'm dequeuing some stylesheets & scripts in WordPress using the following code:
function dequeue_scripts() {
wp_dequeue_script( 'handle' );
}
add_action( 'wp_print_scripts', 'dequeue_scripts' );
My question is how do I know what the script's / stylesheet's handle name is? Where can I find it?
I appreciate any help!! :)
This question already has answers here: How can I get a list of all enqueued scripts and styles? (5 answers) Closed 5 years ago.I am new to php and am just learning the basics. I'm dequeuing some stylesheets & scripts in WordPress using the following code:
function dequeue_scripts() {
wp_dequeue_script( 'handle' );
}
add_action( 'wp_print_scripts', 'dequeue_scripts' );
My question is how do I know what the script's / stylesheet's handle name is? Where can I find it?
I appreciate any help!! :)
Share Improve this question asked Apr 29, 2019 at 18:53 jade newportjade newport 251 silver badge5 bronze badges 1-
You also could just scan the whole codebase for
wp_enqueue_script
. – norman.lol Commented Apr 29, 2019 at 21:41
1 Answer
Reset to default -1WordPress provides a list of the scripts they enqueue in the Codex. That's a good place to start.
Take a look at this question for a more complete answer: How can I get a list of all enqueued scripts and styles?
本文标签: How do I find stylesheet amp javascript handles
版权声明:本文标题:How do I find stylesheet & javascript handles? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745540550a2155163.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp_enqueue_script
. – norman.lol Commented Apr 29, 2019 at 21:41