Removing wp_enqueue_script('jquery'); will fix your problem.
Put jquery into deps parameter of wp_enqueue_script function.
Related Posts:
- Prevent notice and warnings in error_reporting?
- How to debug WordPress correctly?
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- Is it possible to enable and disable wp debug from functions.php?
- WordPress debug messages not displaying
- Getting a WordPress Debug Strategy
- How to receive notification of deprecated API elements and functions?
- How do I specify where to save the debug.log?
- How to give a download link to a .csv file from the custom plugin?
- Possible to get all posts with my shortcode?
- Avoid updating post when sending POST or GET request to post.php
- What’s wrong with this post__not_in argument?
- “Undefined index” error when saving empty array with checkboxes
- Plugin uninstall function is not working
- Loading custom js file on the admin page through plugin
- How to prevent someone from entering strings without making it available for translation?
- First and last name fields not filled when using wp_insert_user
- I am unable to save my data from a form
- Add information to HTTP Header in WordPress Plugin
- Check if post belongs to any category
- What’s wrong with my usage of add_filter
- Moving/dragging a metabox removes TinyMCE’s content
- How can I develop a plugin that generates a page dynamically
- Catching Gutenberg sidebar switch event
- Can we use a library under MIT license in a WooCommerce plugin?
- How do I find the page/url where a search came from when using pre_get_posts filter?
- How to display the specific post content by using POST ID
- Soap web service request from wordpress plugin
- Why does comments_open() return false when publishing a scheduled post?
- Using delete_post_meta for deleting multiple selected options
- How to list all images used on a specific page?
- Create fixed static pages
- Workflow for new importer plugin – your advices?
- Use options to control jQuery plugin
- Including template in shortcodes
- Is there anything special required to make a plugin work in a multisite environment?
- How to exclude categories from get_categories() select list inside a widget admin panel
- How to automatically activate a plugin on install
- disable defaault wordpress comments from a plugin
- How to exclude “uncategorized” from custom categories widget?
- How to create wordpress media library UI on plugin page
- Why my theme’s css not working on another site
- WordPress plugin development theme issue
- How to create dynamic content with get_post_meta?
- Override category archive page title (not the head title)
- Using custom IDP with WP
- Trying to run a Ajax request from a checkout form in woocommerce via a custom plugin
- Securing custom rest API endpoints with public access from PWA
- By adding “?login – failed” code unable to access my dashboard
- jQueryUI draggable doesn’t work in WordPress plugin
- get_queried_object_id combined with wp_redirect gets wrong id
- Using WordPress Boilerplate (WPBP) for WP Multisite Plugin
- WordPress5.2.3: Better File Download Plugin validation issue
- How do I make secure API calls from my WordPress plugin?
- esc_attr() on hard coded string
- Creating a return url for getting data from external api
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- How to prevent users from deleting their accounts?
- How do I get a reference to the HTML memory buffer while the page is being constructed?
- Return raw image proxy for wordpress plugin
- How to handle ajax Request in a complex-structured plugin?
- How to use functions from Woocommerce documentation?
- Is it possible to restore an expired transient?
- How to Maintain url on form submit
- How to pass a more variable with page/subpage in Wordprees URL?
- Use a page as a template for a custom post type
- Experts opinions needed: How (in)secure is this approach?
- add_option_{$option} action hook not being called
- Remove all capabilities in separate method fails versus included in method
- Dynamic sidebar areas not working on the Theme Customizer
- WP API users per page
- Merge Codes using redux framework
- action callback, for action dispatched as reported by hook sniffer, not called
- How to use get_pages( ) correctly with ‘child_of’ to replace page with child page
- variable created in page.php is null inside of header.php
- Access WordPress Tag Function From Modal
- Problem with Poedit [closed]
- how can I insert a link on login page
- Shortcode attribute “title” doesn’t appear in $atts array
- Insert plugin html content to a specific spot in the frontpage
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- How to get the value entered in the input field in wordpres
- Sanitize and Save metabox values
- How can I add a custom button to the post editor?
- How to use register_setting()
- What’s wrong in the WordPress Meta Box Generator code?
- add category id to option name when adding an option on edit_category
- esc_url, esc_url_raw or sanitize_url?
- React Plugin Settings Page Localization
- Is it within WordPress guidelines to update another plugin’s database fields from my own plugin? [closed]
- How to move custom gutenberg block controls from settings to styles tab?
- How can I obtain an option (get_option) inside a block viewScript?
- 2 Domains pointing to SIngle WordPress , issues with links
- How can I space out images when adding to a post without HTML/CSS/JS?
- How to apply a javascript code on certain parts of elementor made pages?
- WordPress Block with Interactivity API e Preact Component
- adding an options menu that allows saving multiple sets of said options
- How to assign to each output values from foreach loop to a meta_key?
- Select a Text for CSS
- WordPress – Filter users list count