Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When I'm writing a plugin, do I assume that jquery is included, or should I always wp_enqueue_script it and let wordpress figure it out?

Also, what's the best practice for getting an image path figured out in my bundled css file?

share|improve this question

1 Answer 1

One point for using wp_enqueue_script is for that very reason. Never assume anything, enqueue jQuery so that if it is there already it does nothing, but if not , it will queue it up.

If your talking about the image path for your plugin, you can use the following, http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

The examples for plugins_url should help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.