Last active
January 4, 2021 04:15
-
-
Save nielslange/b5269ce0e44b9a936ef35ad6c2848f8c to your computer and use it in GitHub Desktop.
WordPress: Check enqueued scripts and styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Check enqueued scripts | |
add_action( 'wp_enqueue_scripts', 'nl_check_enqueued_scripts', 99999 ); | |
function nl_check_enqueued_scripts() { | |
global $wp_scripts; | |
var_dump( $wp_scripts ); | |
} | |
// Check enqueued styles | |
add_action( 'wp_enqueue_scripts', 'nl_check_enqueued_styles', 99999 ); | |
function nl_check_enqueued_styles() { | |
global $wp_styles; | |
var_dump( $wp_styles ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment