post-page

Javascript advice for WordPress Plugin Developers

5
responses
by
 
on
April 12th, 2008
in
LinkyLoo, WordPress, WordPress Plugins

Load Javascript With Your WordPress Plugin: Sage advice from a seasoned and proven plugin developer for WordPress. Ozh talks about some neat javacript loading options and dos and don’t s for plugin developers who need to load various javascript libraries. If you use javascript in your plugin and are not aware of wp_enqueue_script, you need to head over to Ozh’s post.

heading
heading
5
Responses

 

Comments

  1. Ozh (88 comments.) says:

    Well said ! :)

  2. Ronald Huereca (66 comments.) says:

    Wow, that is a great explanation of wp_enqueue_script. Well done.

  3. Azizur Rahman (3 comments.) says:

    I can confirm that wp_enqueue_script also can be called from themes. I am using it to call jQuery library. In fact you can even enqueue your own JavaScript library to it will be added to the header.

    Now when can we expect to get the wp_enqueue_css api?

  4. Ronald Huereca (66 comments.) says:

    Azizur,

    Seriously, that would be neat. Something I’d love to see.

    The best place, in my opinion, is to use wp_enqueue_script in the “functions.php” to load JavaScript files for themes.



Trackbacks/Pingbacks

  1. [...] activated, the plugin will “listen” to all of the scripts added (via the WordPress wp_enqueue_script function) to your pages header and automagically switch the locally hosted library to a Google hosted one. [...]

Obviously Powered by WordPress. © 2003-2013

page counter
css.php