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
- Add Imports to Existing WordPress Import Map
- Include WP_Query in my own PHP file?
- What’s the earliest point I can get the queried object ID?
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Resize Image without cropping
- Is it possible to add an action to the currently running action?
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- When is is_admin() available?
- Woocommerce – Hide a Column in Cart Table
- Insert all post IDs in new database table
- Hiding WordPress Plugin Source Code
- Namespaced action and filter tags
- Ajax not working es expected (Returns 0)
- How to find error in my code when the error message is pointing to WP core file?
- wordpress plugin is not activating from widget
- add element with add_action to posts from a specific category ID
- developing a wordpress plugin, have a few PHP Woocommerce related coding questions
- WordPress Custom field Colors
- What exactly do this function declared into functions.php file of a WP theme?
- How to use html inside a functions.php code?
- Nested “do” and “add” Actions is possible?
- WordPress Environment: Dynamic Page using shortcode – how to change the page name for sharing
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- zip unzip attachments in wordpress
- wordpress admin plugin menu custom css
- how to Update 15k products on plugin activation with meta_option
- Adding Additional Variables on Menus Page
- Using flickr api in custom wordpress plugin
- Toolbar Hidden in a Virtual Page
- How to correctly escape an echo
- How to Remove Theme Style CSS inside Custom Plugin?
- Creating plugin with front-end pages
- How to Send Pingbacks for all Posts in WordPress?
- How to edit post meta data before publishing the post it self wordpress?
- 400 bad request admin-ajax file upload
- The plugin generated 225 characters of unexpected output during activation
- Why should I need to add init action to include PHP file to WordPress Plugin?
- Parsing webhook from Shopify in WordPress
- remove different admin menu for specific users
- remove_action() not working in page template – Genesis
- WordPress / PhpStorm / XDebug and plugin_dir_path issues
- Send data from plugin to external database
- See output of a sql query while plugin installation in wordpress
- How wordpress plugin hooks works? [duplicate]
- base64_encode conflict with convert_smilies in wordpress
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Implement OAuth2 in custom plugin
- login redirect based on user role not work as expected
- redirect user from login page if is logged
- WordPress REST API – Custom field not added to pages
- Woocommerce – add tracking code to another email template
- Execute wp_after_insert_post after the permalink is customized
- Why does WordPress not make use of gettext directly?
- Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks