[wp-hackers] Hook into load-styles.php / load-scripts.php "queue"?

Oliver Schlöbe office at wpseek.com
Tue Dec 1 19:35:13 UTC 2009


Thanks Andrew.

But these functions are the common way to include custom JS and CSS 
files in the <head> area. They add extra

<script....
or
<link...

file references to the head area. What I'm trying to do is to avoid 
these extra <script.... and <link... references and get my files loaded 
with the load-styles.php / load-scripts.php files.

Regards


On 01.12.2009 20:28, Andrew Nacin 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.
>>      
>
> http://codex.wordpress.org/Function_Reference/wp_enqueue_script
> <http://codex.wordpress.org/Function_Reference/wp_enqueue_script>
> http://codex.wordpress.org/Function_Reference/wp_enqueue_styles
> _______________________________________________
> 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