[wp-hackers] wp_register_script vs wp_enqueue_script vs <script />

Eric Marden wp at xentek.net
Sun May 4 17:26:07 GMT 2008


> You can then just call wp_enqueue_script('foo'); in the contexts that
> use it - thereby reducing duplicate code.


In other words, you can register it once, and enqueue it multiple  
times by the name you gave it when you registered it? that's pretty  
cool, but the codex has nothing on it, that i could find.

-e


More information about the wp-hackers mailing list