Created
February 16, 2016 09:22
-
-
Save iamjoshellis/59f68eeb7ce6d95c6082 to your computer and use it in GitHub Desktop.
Wordpress - List all enqueued scripts
This file contains hidden or 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
function list_enqueued_scripts() { | |
global $wp_scripts; | |
foreach( $wp_scripts->queue as $handle ) : | |
echo $handle . ', '; | |
endforeach; | |
} | |
add_action( 'wp_print_scripts', __NAMESPACE__ . '\\list_enqueued_scripts()' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment