Action hook 'cron_unschedule_event_error'

in WP Core File wp-cron.php at line 179

View Source

cron_unschedule_event_error

Action Hook
Description
Fires if an error happens when unscheduling a cron event.

Hook Information

File Location wp-cron.php View on GitHub
Hook Type Action
Line Number 179

Hook Parameters

Type Name Description
WP_Error $result The WP_Error object.
string $hook Action hook to execute when the event is run.
array $v Event data.

Usage Examples

Basic Usage
<?php
// Hook into cron_unschedule_event_error
add_action('cron_unschedule_event_error', 'my_custom_function', 10, 3);

function my_custom_function($result, $hook, $v) {
    // Your custom code here
}

Source Code Context

wp-cron.php:179 - How this hook is used in WordPress core
<?php
 174  				 *
 175  				 * @param WP_Error $result The WP_Error object.
 176  				 * @param string   $hook   Action hook to execute when the event is run.
 177  				 * @param array    $v      Event data.
 178  				 */
 179  				do_action( 'cron_unschedule_event_error', $result, $hook, $v );
 180  			}
 181  
 182  			/**
 183  			 * Fires scheduled events.
 184  			 *

PHP Documentation

<?php
/**
				 * Fires if an error happens when unscheduling a cron event.
				 *
				 * @since 6.1.0
				 *
				 * @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.
				 */
Quick Info
  • Hook Type: Action
  • Parameters: 3
  • File: wp-cron.php
Related Hooks

Related hooks will be displayed here in future updates.