cron_reschedule_event_error
Fires if an error happens when rescheduling a cron event.
Usage
add_action( 'cron_reschedule_event_error', 'wp_kama_cron_reschedule_event_error_action', 10, 3 );
/**
* Function for `cron_reschedule_event_error` action-hook.
*
* @param WP_Error $result The WP_Error object.
* @param string $hook Action hook to execute when the event is run.
* @param array $v Event data.
*
* @return void
*/
function wp_kama_cron_reschedule_event_error_action( $result, $hook, $v ){
// action...
}
- $result(WP_Error)
- The WP_Error object.
- $hook(string)
- Action hook to execute when the event is run.
- $v(array)
- Event data.
Changelog
| Since 6.1.0 | Introduced. |
Where the hook is called
In file: /wp-cron.php
wp-cron.php 152
do_action( 'cron_reschedule_event_error', $result, $hook, $v );