[wp-hackers] Proposal: standardize plugin-data path
otto at ottodestruct.com
Fri Sep 26 16:58:31 GMT 2008
On Fri, Sep 26, 2008 at 10:24 AM, Mike Walsh <mike_walsh at mindspring.com> wrote:
> This was very timely as I am working on loading some plugin specific
> doesn't work:
> function swimteam_admin_head()
> // Load CSS
> swimteam_head_css() ;
> . '/js/portlet.js')), array('jquery', 'interface')) ;
> . '/js/portlet.js'))) ;
If you're hooking that to the admin_head action hook, then that's too
late. admin_print_styles and admin_print_scripts happen before
admin_head, so the enqueue is too late to do anything.
Hook to admin_init instead.
More information about the wp-hackers