WordPress Plugin development Call to undefined function jQuery()
You need specify jquery as a dependency of your custom script, setting the 3rd parameter of wp_enqueue_script() to array(‘jquery’), like this: wp_enqueue_script( ‘yourCustomScript’, plugins_url(‘js/yourCustomScript.js’, __FILE__), array(‘jquery’), ‘1.0.0’, false ); Change the path to point to your custom-script file As to your last question, the answer is affirmative. You need a .js file. Basically WP needs … Read more