Answers for "include jquery in wordpress plugin"

1

jquery wordpress starter code

jQuery(document).ready(function( $ ) {
  //Place your jQuery code here...
});
Posted by: Guest on October-23-2020
1

wp_enqueue_script jquery

// include custom jQuery
function shapeSpace_include_custom_jquery() {

	wp_deregister_script('jquery');
	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js', array(), null, true);

}
add_action('wp_enqueue_scripts', 'shapeSpace_include_custom_jquery');
Posted by: Guest on April-05-2020

Code answers related to "include jquery in wordpress plugin"

Code answers related to "Javascript"

Browse Popular Code Answers by Language