4/12/2008 ↓

Javascript advice for WordPress Plugin Developers

Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.

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.

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...
Sphere: Related Content | stumbleit |

Translate

Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

Latest WordPress Jobs

5 Comments | Leave a comment | Comments RSS

  1. Well said ! :)

    Ozh (72 comments.) — 04/12/2008 @ 9:16 am
  2. Wow, that is a great explanation of wp_enqueue_script. Well done.

    Ronald Huereca (65 comments.) — 04/12/2008 @ 7:16 pm
  3. 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?

    Azizur Rahman (3 comments.) — 04/12/2008 @ 7:34 pm
  4. 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.

    Ronald Huereca (65 comments.) — 04/13/2008 @ 4:28 pm
  5. [...] 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. [...]

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2