It looks like a mismatch of the number of arguments. Your function has none but your action hook says it expects one.
Related Posts:
- action hook wp_head higher priority as all other plugins/hooks
- Adding widgets to my plugin page instead of WordPress dashboard
- How do I remove an action hook inside a class that is called by another class?
- what is correct way to hook when update post
- Using register_activation_hook in classes
- Custom plugin: Trying to show saved data on frontend
- Check php version before theme activation
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- add_meta_boxes action with refresh on save
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Delete option value from array using update_option()
- How to set a custom path, for ajax image upload folder in admin?
- How to access function from outside of a class within this class in WP plugin?
- How to call function at the bottom of post using plugin?
- wp_loaded hook block script enquequing
- Adding Default Settings to Theme My Login plugin
- Remove an action hook within a Class
- How to pass arguments to add_action() or retrieve return value of called function?
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Set meta field to publish date + 2 weeks
- Modify custom field input data before creating a new post
- Should `wp_login` be used since it’s deprecated?
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- How to catch wordpress post ID when it’s published
- WordPress redirect redirecting too many times or not at all
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- Action Hook Inside WordPress Plugin Shortcode
- Woocommerce custom Plugin in wordpress [closed]
- How to pass hook variable to function?
- using filter and hook inside class
- Get original value in save_post action hooka
- get Woocommerce product format json for WP_Query
- Register/enqueue scripts only on certain admin pages
- Is there an option to execute javascript file only on plugin activation
- Hook into all password resets in WordPress and get password before hashing?
- Submit to itself don’t work
- WordPress HTML Helper
- Plugin Hook: Get posts
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- How to add custom checkout field in user details mail template
- Cannot modify header information – headers already sent
- Is there a hook that I can use when a fatal error occurs?
- When to use Exceptions vs Error Objects vs just plain false/null
- Action ‘save_post’ not working for quick edit
- simple wordpress ajax plugin not working when not logged in
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Saving metabox repeatable fields
- Insert post without actions/hooks
- do not show web page section when using advanced custom fields pro
- How to get all existing post types
- Create custom blocks for bootstrap
- Should action callbacks start with a verb?
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- How to get all of the activate_plugin action parameters?
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Remove metabox from WordPress menu editor page?
- Improve page speed loading using CDN and async or defer attribute
- Script to browser problem PHP
- Don’t insert if permalink is the same?
- Store a default value for a transient on plugin activation
- Why does the post_type_link hook everything twice?
- Adding function to child theme’s function.php
- Custom Registration username_exists / email_exists
- Remove genesis_404 hook from genesis_loop [closed]
- How can I search all plugins for composer’s vendor/autoload.php?
- How to find list of all functions bind to a particular hook from my plugin?
- PHP using external anonymous function inside class
- How do I add a function to parent theme
- Add Pre-Defined Value to Click Counter in WordPress
- Drop down question
- Hooking into the HTML header container
- code that I can run, or a plug in to show what sql tables something pulls information from
- Automatic email message after manual user approval
- custom mailchimp form using HTTP API
- How to override theme’s public static function inside of a trait?
- pass datetime using wp_localize_script to frontend from settings page
- add custom metabox to media library custom widget
- Display attached images of a page or post that are insetred using gallery
- overwrite wordpress gallery with custom gallery shortcode
- Enqueue sripts and styles only if function is called
- Add widget area from visual editor
- Looping through custom data in a custom table to display all items in a post
- add_action in wp_head accessible from class
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- not able to access $_POST on backend profile update
- Adding custom PHP to existing loop in Genesis
- How can I move the posted-on date above the post and below the entry-header?
- INCOMING: Wall of code for form and $_POST, not updating custom field’s value
- Post formating on Home page
- WP multisite network plugin fails to see classes loaded with spl autoload
- What is this mark for “? function()” [closed]
- Insert plugin html content to a specific spot in the frontpage
- using a shortcode in a hyperlink
- WordPress REST API – Custom field not added to pages
- Woocommerce – add tracking code to another email template