Scripts must be inserted using wp_enqueue_script
. This function allows you to define dependencies, so you can be sure they load after jquery. Like this:
wp_enqueue_script('your-script-name', 'full-path-to-your-script', array('jquery'));
Even better, register your script first. Anyway, look in the plugin code where it enqueues user scripts and make sure it adds the jquery dependency. Or, perhaps better, build a child theme and add the following to functions.php
:
add_action ('wp_enqueue_scripts','wpse229008_add_scripts');
function wpse229008_add_scripts() {
wp_register_script('your-script-name', 'full-path-to-your-script', array('jquery'));
wp_enqueue_script('your-script-name');
}
Related Posts:
- How can I force a file download in the WordPress backend?
- How to implement a customizable free OpenID authentication?
- What’s a reliable way to depend on another plugin?
- Woocommerce get cart total price in a number format [closed]
- How to tell if Jetpack’s Photon is active?
- Woocommerce – Hide “add to cart” on free products
- Is it good practice to remove redundant plugins and themes?
- What is the purpose of the “Hello Dolly” plugin?
- Generate Advanced Custom Fields box in custom admin menu page
- Share buttons on article footer
- change plugin shortcode function [closed]
- How to prepend to the_title for admin-side plugin’s use
- How can I retrieve data within my widget
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- I need some direction on how to have a sidebar based on meta rather than page
- Using plugin functionality in external php script not working
- How can i add all videos from youtube playlist as post?
- Add Image to the RSS plugin reader from another RSS [closed]
- Is there a plugin to insert pre-defined link into editor?
- Override plugin with functions.php
- audio streaming plugin but with no save option?
- Missing argument 3 for wp_register_sidebar_widget()
- Pass variable to nested shortcode
- Simple plugin for showing RSS subscription links?
- How to make my plugin able to be updated from admin panel?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Is there a way I can find wordpress posts that don’t contain a word?
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Generate XML Sitemap for Blog on Magento Platform
- Display data on Word Press site posts and pages from mysql table
- How to save additional user data as part of the registration process?
- Why is output buffering used here?
- What’s the best way to implement AJAX in WordPress?
- Cannot find a list of data selectors for Gutenberg editor
- Trying to create a plugin to change wordpress site icons per page
- What is the correct way to show $href = vc_build_link( $href ); [closed]
- PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback Error without any function name
- Adapt PHP form action for WordPress?
- trying to get product category image in woo-coomerce
- WooCommerce search products between price range using WP_Query
- Stop WordPress processing Javascript as text
- Full list of registered scripts or styles, but from an admin options page
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Disable Plugin with one button
- Using wordpress translations strings in plugin
- Are mu-plugins plugins still deployed via wordpress.org/plugins?
- how to insert a HTML form into a javascript popup?
- How can I modify page content in the admin panel?
- get specific value of a array | PHP
- Displaying content based on drop-down menu selection sitewide
- sending different email notification while registration based on user role
- WordPress Multi-Step Product Search
- Woocommerce Free shipping method [closed]
- How to save comment name email url fields?
- Best practices for user registration with WordPress from an MVC background
- How to get a notification when the plugin is installed?
- Change the Simple Facebook Connect popup position
- WordPress Post HTML after Posting
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Settings options not showing up on Sub Menu page in WordPress plugin
- Using Amazon Book Gallery Plugins in WordPress [closed]
- Custom Meta box change size
- The Build menu theme is frozen with the wordpress theme
- How to add label/badge on bookable product based on their booking status
- Does anyone know why my SEO and title become one?
- WordPress PWA with Form
- Help to create function that changes name in the certificate of the sensei lms
- How achive serving multiple concurrent Ajax / Rest calls in plugin?
- After migrating with duplicator all scripts are still tied to old CDN
- How to prevent redoing get_posts queries and make results available to other scripts?
- strtotime not working
- Get all user meta_keys and then group users by matching values
- Optimized PHP & WordPress settings for speed/performance?
- How to add php plugin code in theme
- AddThis Plugin adding html comments in P tags
- Embed Javascript code to registered users only
- Need help for creating custom table on wordpress
- ound this in Where to edit Custom Content fields to optional if there is no plug in?
- How to add a meaningful link in plugin admin panel?
- Setup SMTP setting in wordpress
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- jQuery loaded in wrong order for non-admin page views only
- Widget redirecting to home page
- Capturing POST data
- Advanced Custom Fields Plugin – not displaying images
- Creating Features List in WordPress Post
- why i cannot see some plugins while they are enabled on network admin page?
- wordpress Search function is not working
- WooCommerce Email Customization
- SSL not working for checkout
- Plugin LDAP Authentication 2 In stallation ploblem
- woocommerce how to get cat id in content-product.php
- How can I properly sanitize the update_option in WordPress?
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- Why is my menu page not being displayed?
- How often should I execute add_filter and function declaration in Code Snippets?
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site
- How do I remove the filter from the orders and add custom status in Dokan?