Support » Plugins » GET enqueued scripts?

  • I am familiar with wp_enqueue_script() used by many Plugins.

    What I would like, is a way to see all what scripts have been enqueued. Like a get_enqueued_scripts().

    Anyone know a way to find what scripts all have been enqueued?

    thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Jan Bocinec

    (@johnnypea)

    It is possible to display all enqueued scripts/styles?

    I need this to find out which scripts/styles have been added by the plugins or the theme.

    Ozh

    (@ozh)

    global $wp_scripts;
    var_dump( $wp_scripts );
    Jan Bocinec

    (@johnnypea)

    Sorry but I tried this before and it returns NULL or nothing at all…where should I put it?

    Michael Fields

    (@mfields)

    Themer

    Try header.php after wp_head();

    Jan Bocinec

    (@johnnypea)

    I already tried that. It returns NULL 🙁

    Michael Fields

    (@mfields)

    Themer

    Even with the global declaration? I just tried it and it printed out a whole lot of information. When I removed global $wp_scripts; it printed NULL.

    Jan Bocinec

    (@johnnypea)

    Sorry, my mistake. I switched off all the plugins so actually there was nothing to show 🙂

    Thank you guys. It is working now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GET enqueued scripts?’ is closed to new replies.