akcjaod 6.1.0
cron_unschedule_event_error
Opis — z kodu źródłowego
Fires if an error happens when unscheduling a cron event.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$result | \WP_Error | The WP_Error object. |
$hook | string | Action hook to execute when the event is run. |
$v | array | Event data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'cron_unschedule_event_error', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'cron_unschedule_event_error', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii