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:
- Disable /wp-admin/plugin-install.php
- Removing the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin
- Plugins not showing in dashboard->plugins section
- How to add favicon to my site – in both front end and admin panel
- Reordering themes in admin panel
- How do I email a new page password to somebody every month?
- Deactivate plugins only for mobile devices
- Gutenberg: How to use output of php render_callback function in the block editors backend?
- Custom database or Custom Post Types?
- How do I extract the Alt Text from an image attachment upload via the WordPress Options Framework Plugin?
- Visual Composer vs. Advanced Custom Fields [closed]
- Themes VS Plugins [duplicate]
- How to load plugin before the wordpress jquery?
- Why is my ajax call refreshing the page?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to count number of records found in a database table?
- Can a WordPress plugin or theme contain a virus?
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- htaccess and wordpress config files are regularly over written
- Issue with post request to admin-post.php
- Built in audio player?
- How to show my sidebar in specific page only?
- like to keep reading plugin
- Plugin to restrict access to pages in wp-admin
- How to add class in plugin only for network site?
- Add category to body class
- Plugin Development sqlite or WordPress’ database
- WordPress plugin for activating other plugins
- woocommerce 3.2.1 not sending order notification emails
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Keep a post copy when this one is updated – issue
- WordPress web pages keep getting deleted (moved into the trash) by themselves
- Post category with counts been display like a menu
- Gravaty Forms Conditional Logic Redirect [closed]
- Post custom Data value in The Events Calendar plugin [closed]
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Plugin Repository commit doesn’t show up in activity
- How to create a custom shortcode based on the layout?
- Installing plugins and using complex folder structure with child theme in WordPress
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- Custom post types – remove default post supports through empty array?
- How to insert and call new data in wordpress website database through a plugin
- Repeated Output in Widget
- Where is this strange og:description coming from?
- Release the plugin in the WordPress repository where redux is used
- Dokan Marketplace store link in single product page
- How retreive saved data from gravity forms in my template?
- Ajax object not defined – JS file is in plugin folder
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Sharing functions between plugins
- Making the ‘add to cart’ button redirect to PayPal
- Is the bulk_action hook stable for use in 3.2.X?
- I/O Usage goes max. just after every new post published and WP site down
- Can’t load the the canges of field groups [duplicate]
- Disable recpacha for contact form 7 specific form
- Personality quiz in wordpress using a plugin
- Adding custom post category to categories widget
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- How to ignore fields if empty?
- Error messages in Multilingual part of the site
- Import 2000 posts from one website to another
- wp_remote_post To external API multiple values with the same key
- Add WooCommerce vendor slug to auto-generated SKU
- redirect to a custom page
- custom REST endpoint not passing body of POST request to callback
- Add section (add_settings_section) to a custom page (add_submenu_page) not working
- cURL do not mimic click
- What action or filter can I use to change all the html returned from server for a page?
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- How to change text in a page by utilizing a custom user id?
- How to hook into search results template or query?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- how to create table during plugin installation in side a class
- Which WordPress version to use for improved plugin compatibility? [closed]
- WP_Filesystem usage within a block of code
- How can I retrieve data within my widget
- Why function hooked using object are executing at all time?
- Create a blank admin page from plugin
- Private WordPress blog, requires user registration approval, and allowing users to login with OpenID
- How do I make the selected layout display for all MarketPress pages?
- In my plugin when i call select page is blank
- include plugin folder directly in theme folder to load faster page n wp
- Including a PHP file via a function that is part of a plugin?
- How do i remove “Powered by WordPress” from AMP?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Publish post facebook page & twitter automatically [closed]
- How I can hide my wp folders from Inspect Element (Developer Tools)
- How to know if your code is executed on wordpress.com and wordpress.org?
- I want to include My theme file (testing.php) to inside my plugin folder (myplugin/mypugin.php)
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- Override plugin constant using a theme
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- WordPress menu dissapear when I add a parameter to custom post archive
- Submitting form to admin-post.php WordPress
- WordPress Throwing Deprecated Errors on its own Files
- Changing slug when post is copied
- Show the author only own types of publications. (JetEngine, Elementor)