So as we discussed this in chat, there was one (wired) thing:
The hook name must not(!) contain underscores.
To keep yourself on the save side of life, better lower case it as well.
Related Posts:
- How to redirect to settings page once the plugin is activated?
- How to output message during plugin activation
- Prevent network activation of plugin
- Inserting Taxonomy Terms During a Plugin Activation?
- Which action for triggering cron “wp”or “init”?
- wp_schedule_event in a class
- WP Cron – Run Cron after evey 15 minutes at a specific time for the next three hours
- WordPress scheduled task is called but not executed
- Problem creating cron job wordpress
- How Do I Make WordPress Run an Event Every Day?
- How can I change the frequency of a scheduled event?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- WP Cron doesn’t save or in post body
- Call activation hook multiple times
- Only allow plugin to be activated on root site of multisite
- why creating tables using $wpdb is not being executed while installing plugins?
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- WordPress cron running twice
- Override pluggable functions in a plugin?
- Plugin activation error due to unexpected output
- Scheduling a task using class methods
- Settings not set after calling register_setting()
- What is minimum time interval for which a cron be scheduled?
- Will cron job run if page loaded is being served from cache?
- Use wp_set_post_terms() instead of wp_insert_post()
- Programmatically detect if wp-cron is disabled?
- How to schedule a cron job in plugin without waiting for page load request?
- Insert terms for custom taxonomy on plugin activation, or each page load (init hook)
- How to perform a heavy and long process in cron jobs?
- WordPress daily cron is executing more frequently than once a day
- wp-cron and execution of code in is_admin() included script
- How to Trigger WP CRON at Local Timestamp?
- WP Cron being triggered but not working as expected
- Add Link Category on Activation?
- wp_schedule_event() set daily, but processed every second
- WordPress Plugin Activate / Deactive Failing
- Will I get an error if I try unscheduling a WP Cron scheduled task that wasn’t scheduled?
- Looking for a better way to initiate cron job
- Multiple array for post_content on plugin activation
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- WordPress plugin cron working only if admin is logged in
- Plugin can’t be activated [closed]
- How to make a cronjob type plugin
- Clean way to initialize plugin in newly-added site when plugin has been network activated?
- Activate / Deactivate plugin
- wp_schedule_single_event is set correctly but sometimes not fired
- How to Run Plugin on Server Without Web Browser
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Custom Plugin activation error in Multisite
- Plugin with functions inside a class & how to trigger WP CRON
- Custom recurrence not working / Wp Cron event
- How to store in the database directly the translation?
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- Unable to show a message after plugin activation
- WP Cron as Fast as WordPress AJAX?
- Detect each active instance of a widget
- Refresh or redirect page after activate my plugin
- I can install my plugin in localhost but not in my server
- What is the use of wp_schedule_event hook?
- WordPress plugin tables become corrupt
- Can wp_schedule_single_event be used to run background proccess?
- Deactivate plugin on registration
- Call do_action() within WordPress cronjob
- Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
- how can a plugin return an error message on activation?
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- wp cron does not run when i am not logged in to wp admin
- My activator class isn’t running the code inside
- Does WP fire delete_post when trashed posts are automatically deleted?
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- WordPress register_activation_hook table creation not working
- comment_email hook doesn’t seem to work for comment editor field
- How can I add a field to make link nofollow to the WordPress Link Inspector Window?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- settings_fields() doesn’t work for other roles except admin
- how to make custom bulk actions for a WP_List_Table (core class)
- Get name and email of current unregistered user, who has recently submitted name and email in comment form?
- Auto save permalink setting page with the plugin activation
- Show custom data instead of 404
- What’s the right way to instantiate new blocks and/or the plugin itself in toto when using wppb architecture?
- wp_schedule_event seems to be being added twice
- add_rewrite_rule behaving strangely
- Problem with context in multisite – getting main site data in every blog (get_pages())
- How do I change the image from the default mysteryman in the WP Profile page
- Using Product variations as product addons
- Change author permalink to external URL
- Custom Settings Plugin Save foreach checkboxes
- How to check if `comment_meta` exists before inserting the comment?
- Showing results from json-string in WordPress search results page
- Add default custom taxonomy to plugin activation
- How to revive (or take over) a plugin?
- Woocommerce product not appearing in category list page when created programatically [closed]
- add_meta_box does not display meta box in Admin
- What is the “best” way to update a theme via a plugin?
- Acessing WP functions in form submission handler
- Dynamic banner for use on external sites
- Practical Solutions to HTML5 Video on WordPress
- An adiitional function fires on my AJAX submit
- How to add something after a function
- WordPress plugin boilerplate AJAX functionality