[wp-hackers] Included scripts array

scribu scribu at gmail.com
Sat Aug 9 13:11:06 GMT 2008


It seems that $wp_scripts is set only if there is a script added,
which is normal. So I managed to check if jquery is already loaded by
doing  in_array('jquery', $wp_scripts->done)  and then adding the css
and js files to the head via another javascript.

On Thu, Aug 7, 2008 at 10:45 PM, scribu <scribu at gmail.com> wrote:
> <?php
> global $wp_scripts;
>
> print_r($wp_scripts);
> ?>
>
>
> I inserted this code in footer.php and nothing happened. How can I see
> other global variables like $wpdb, but not $wp_scripts?
>
>
> --
> http://scribu.net
>


-- 
http://scribu.net


More information about the wp-hackers mailing list