cron_unschedule_event_error хук-событиеWP 6.1.0

Fires when an error happens unscheduling a cron event.

Использование

add_action( 'cron_unschedule_event_error', 'wp_kama_cron_unschedule_event_error_action', 10, 3 );

/**
 * Function for `cron_unschedule_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_unschedule_event_error_action( $result, $hook, $v ){

	// action...
}
$result(WP_Error)
The WP_Error object.
$hook(строка)
Action hook to execute when the event is run.
$v(массив)
Event data.

Список изменений

С версии 6.1.0 Введена.

Где вызывается хук

В файле: /wp-cron.php
cron_unschedule_event_error
wp-cron.php 179
do_action( 'cron_unschedule_event_error', $result, $hook, $v );

Где используется хук в WordPress

Использование не найдено.