Created
August 20, 2019 11:05
-
-
Save flymke/fa7f49a506188a2b3e03fb44a9a7c693 to your computer and use it in GitHub Desktop.
Find out file handles in WordPress
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 | |
add_action( 'wp_head', 'check_jquery' ); | |
add_action( 'admin_head', 'check_jquery' ); | |
function check_jquery() { | |
global $wp_scripts; | |
global $wp_styles; | |
//foreach ( $wp_scripts->registered as $wp_script ) { | |
// $handles[] = $wp_script->handle; | |
//} | |
foreach ( $wp_styles->registered as $wp_script ) { | |
$handles[] = $wp_script->handle; | |
} | |
print_r($handles); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment