Skip to content

Instantly share code, notes, and snippets.

@scarstens
Created August 15, 2014 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scarstens/1514162c033ed925f117 to your computer and use it in GitHub Desktop.
Save scarstens/1514162c033ed925f117 to your computer and use it in GitHub Desktop.
WordPress php code to print a list of hook-action-styles from the enqueue method.
<?php
add_action('wp_print_styles','check_styles', 1);
function check_styles(){
$hook_name = 'wp_enqueue_scripts';
global $wp_filter;
var_dump( $wp_filter[$hook_name] );exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment