[wp-hackers] Hook into load-styles.php / load-scripts.php "queue"?
Oliver Schlöbe
office at wpseek.com
Tue Dec 1 21:04:33 UTC 2009
That would be worth a try, thanks!
Although the codex example of wp_register_script is in combination with
wp_enqueue_script which would result in an extra <script reference
http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_scripts_only_on_plugin_pages
But let's see. I'll report back.
On 01.12.2009 21:16, Mohammad Jangda wrote:
>> I was just curious. Is it possible to hook into load-styles.php /
>>
> load-scripts.php to load a custom CSS/JS file the same way WP loads the
>
> files in wp-admin? Would be nice to get your own plugin javascript files
>
> loaded minified/merged in load-scripts.php.
>
>
> Haven't looked into it deeply enough, but *wp_register_script* should work.
>
>
> wp_register_script( $handle, $src, $deps = array(), $ver = false,
> $in_footer = false )
>
> --
> Mohammad Jangda
> www.digitalize.ca | @mjangda
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
--
Regards,
Oliver Schlöbe
http://wpseek.com/
http://wpworldmap.net/
More information about the wp-hackers
mailing list