Created
October 27, 2023 14:03
-
-
Save mikeott/df8a2d8c6fdf333e1fb7ad142942593a to your computer and use it in GitHub Desktop.
WordPress Enqueue jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* If jQuery is not enqueued, do it */ | |
function enqueue_jquery() { | |
wp_enqueue_script('jquery'); | |
} | |
add_action('wp_enqueue_scripts', 'enqueue_jquery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment