Skip to content

Instantly share code, notes, and snippets.

@iamjoshellis
Created February 16, 2016 09:22
Show Gist options
  • Save iamjoshellis/59f68eeb7ce6d95c6082 to your computer and use it in GitHub Desktop.
Save iamjoshellis/59f68eeb7ce6d95c6082 to your computer and use it in GitHub Desktop.
Wordpress - List all enqueued scripts
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