I'm trying to add jQuery to the login head using wp_enqueue_script in a new plugin of mine, and nothing is being output.
If I hard code and echo the script, still hooking into login_head, then the script is there, but I want to use wp_enqueue_script to keep things neat.
This is my function:
and I'm hooking like this (I'm using a class):Code:function ega_jquery() { wp_enqueue_script('ega_ajax', $ega_root . 'ega_ajax.js', array('jquery') ); }
Why isn't this working?! Am I using the wrong hook?Code:add_action('login_head', array(&$epic_grav_ajax, 'ega_jquery'));
Thanks


LinkBack URL
About LinkBacks
Reply With Quote