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?
wp_enqueue_script
. – norman.lol Commented Apr 29, 2019 at 21:41