jQuery is not defined in Wordpress 3.4


When I installed WordPress 3.4, my plugins that uses jquery suddenly didn’t work.

Here’s how I fixed it. Add these codes on your plugin.
add_action(‘wp_head’, ‘load_scripts’); // to load jquery on the font page
add_action(‘admin_head’, ‘load_scripts’); // to load jquery on the admin page

function load_scripts(){
//other scripts


Sharing is loving...Email this to someoneTweet about this on TwitterShare on LinkedInShare on FacebookShare on Google+Share on TumblrPin on Pinterest