Uncaught ReferenceError: jquery is not defined wordpress code example

Example 1: reference error $ is not defined jquery

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

Example 2: jquery is not defined error in wordpress

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

define('CONCATENATE_SCRIPTS', false);

Example 3: How to fix WordPress jQuery is not defined

wp_enqueue_script( 'Jquery-script', plugin_dir_url( __FILE__ ) . '/js/my-script.js', array( 'jquery' ), '1.0.0', true  );

Tags:

Misc Example