[wp-hackers] Hook into load-styles.php / load-scripts.php "queue"?
Mohammad Jangda
batmoo at gmail.com
Tue Dec 1 20:16:52 UTC 2009
>
> 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
More information about the wp-hackers
mailing list