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?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How can I add an image upload field directly to a custom write panel?
- Looking for WordPress System Diagrams
- How to output message during plugin activation
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- How to return only certain fields using get_posts()
- How to provide translations for a WordPress TinyMCE plugin?
- Where do I start from
- Where is it better to start learning how to develop for WordPress?
- Check the Version of an Enqueue’d External Library
- Is there any way to test if a function running only on plugin update is successfully running?
- Using wp_cron with custom time interval and the register activation hook
- Throw 403 in a plugin [duplicate]
- Change of query var in pre_get_posts not maintained
- Hook for post permalink update
- How can I view all WP generated thumbnails in Media Manager?
- Only allow plugin to be activated on root site of multisite
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- How to Parse an Array of Elements in Gutenberg Block
- Load page template with custom content using a plugin
- How to put placeholder text in the main post input area?
- Custom rewrite rule serves content, but returns 404 error code
- Will changing the ‘Plugin Name’ header in the next update of a plugin break anything?
- Performance of several get_option() calls
- How to edit mySQL wp_posts table from plugin php?
- Creating a Wordpess Plugin that writes data to a csv file. The data doesn’t show in the csv file?
- how to redirect to another post without getting headers already sent error?
- Problem with is_active_sidebar?
- Prevent Plugin from loading on ‘wp-admin / wp-login’
- Redirect user to a particular link in 10 seconds after using wp_die
- Getting admin notices working for plugin errors
- Change template dynamically
- override pluggable.php functions
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- “Plugin could not be activated because it triggered a fatal error.”
- Programmatically detect if wp-cron is disabled?
- Add column in WP user but it goes wrong
- How to remove the current post from the query?
- Passing nonce at admin menu link
- Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?
- how to get up row in wordpress with wpdb
- Preview plugin store details
- Prevent third party plugin’s admin page access based on user type
- Get attachments from a post
- How to remove default style of header in wordpress metabox
- I have 2 plugins using the same wp_login action hook and one is not working
- TEMPLATEPATH without the theme name? No THEMEPATH constant?
- wp_update_post deletes post meta in CPT
- Update Data parameter of a wp_localize_script() call
- flush rewrite rules after plugin update?
- Download button in a plugin’s settings page
- hook filter after the_content on a specific page
- Run command “composer install” when activating wordpress plugin
- Data not insert and update through ajax and jQuery in admin page?
- Creating two tables in database on activation hook
- Adding custom stylesheet into header.php using a plugin
- Developing the save function in Gutenberg blocks
- Detect change in site_url and home_url
- Reporting errors in a shortcode plugin
- Adding Custom CSS with PHP
- How to remove/replace current page template?
- How do I add a menu item to a Pods admin menu?
- Is there a way to add a link with add_post_meta?
- Using password protection to load different page elements?
- How to Show Category List With Corresponding Links?
- Change reminder email date to 14 days before
- .htaccess with WordPress – create my own pretty url with parameters (above WordPress settings)
- Generating a password-protected front-end page via a plugin
- How do I add a 5 digit ZIP code validation to a Contact7 form?
- wp_remote_post not working with admin-post.php
- How can we stop showing short code in create or edit post section
- Default media uploader is not showing in wordpress website
- Delete Plugin Options with Verify
- Load custom translation in custom plugin fails
- Buddy Press restrict the capability to edit users
- “Headers Already Sent” Nightmare on Plugin
- Uncaught ReferenceError: kpoejy is not defined
- How to get an array out of a nav menu if it’s a plugin?
- Is there better way to do this without duplicating queries?
- How to create a simple plugin which show/hide an html code in wordpress?
- How to create custom frontend php page via plugin
- How can I add recent posts to menu like mashable
- Translation of plugin Upload button
- Changing upload directory for plugin uploads only
- Create wordpress dashboard metabox which spans all columns
- How do I query posts and have their related taxonomies returned in the results?
- add_filter adds output in the head
- How can i add insertion point between inner blocks in my custom block like core blocks
- Update option hook not firing
- $_GET vs get_query_var()
- How to display .ptm file in my WP site without JAVA
- ‘useSate’ error when using React on the frontend in custom block plugin