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?
- Too few arguments – wp_login action
- Custom filter not affecting gtag script position in WordPress footer
- Add Imports to Existing WordPress Import Map
- Difference Between Filter and Action Hooks?
- How can I see all the actions attached to an “add_action” hook?
- Which hook should be used to add an action containing a redirect?
- Display current category title on category page
- Should I use spl_autoload_register() in my plugin?
- How can I save a multiple select array with the settings API for a plug-in options page?
- error_log() output for print_r() appearing on page
- Include WP_Query in my own PHP file?
- When to use Exceptions vs Error Objects vs just plain false/null
- Enforcing password complexity
- WordPress and event-driven programming – what is it about?
- Does an activated plugin automatically mean its methods are available to other WP functions?
- Allow only 1 taxonomy per custom post type [duplicate]
- Uninstalling a plugin: delete all options with specific prefix
- Is there a way for a plugin to add an attribute to the tag of a theme?
- Genesis – Customize search form
- When can you get current page ID and initialize hooks right after?
- How to set custom cookies before output
- WordPress URL Rewrite not working
- Customizing subject in comment notification e-mails
- Receiving Stripe Webhooks on a wordpress website
- Remove Woocommerce product link
- How do you use the plugin boilerplate loader class to hook actions and filters?
- Do I require the use of nonce?
- How Do I Load My Action Earlier Enough?
- Fatal error: Call to undefined function plugin_dir_path()
- How to use update and delete query in wordpress
- Does WP fire delete_post when trashed posts are automatically deleted?
- Getting the action’s tag name within the action
- Detect a focus on wp_editor
- What’s the earliest point I can get the queried object ID?
- How do I Make a Theme “plugin-ready”?
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Using the ‘draft_to_publish’ hook (post status transition)
- How to make WordPress plugin check for database changes and then do something?
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Retrieve multiple values passed to a single attribute in a shortcode
- Adding a search form inside a div
- Change the footer text on the login page
- How can I hook into and edit the text of a wp_nav_menu tag?
- Change Password Hint
- How to remove a metabox from menu editor page?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Dynamic URL to reference custom PHP files
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- Display a text message if the shortcode is not found?
- Action ‘save_post’ not working for quick edit
- Can i check if user is doing any ajax request?
- How to change date language without changing the entire site language?
- Check if page parent has certain template
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- How to remove “out of stock” variation options from size dropdown in woocommerce?