Skip to main content
1 of 2
kaiser
  • 50.8k
  • 27
  • 150
  • 244

As an addition to @Wyck answer, you can take a look at this explanation about how to determine on which admin UI page you currently are.

Most of the scripts are already registered, but not enqueued, so not loaded. Just inspect them in the shutdown through dumping the $GLOBALS['wp_scripts'];.

You can use the following function that hooks into this hook:

function debug_my_scripts()
{
    global $wp_scripts;

    $output['Registered']  = var_export( array_keys( $wp_scripts->registered ), true );
    $output['Enqueued'] = var_export( $wp_scripts->queue, true );
    $output['Done'] = var_export( $wp_scripts->done, true );

    foreach ( $output as $title => $data )
        print "<h3>{$title}</h3><pre>{$data}</pre>";
}
if ( is_admin() )
    add_action( 'shutdown', 'debug_my_scripts', 9999 );
kaiser
  • 50.8k
  • 27
  • 150
  • 244