Skip to content

Instantly share code, notes, and snippets.

@nielslange

nielslange/functions.php

Last active Jan 4, 2021
Embed
What would you like to do?
WordPress: Check enqueued scripts and styles
<?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