filtrod 5.1.0
get_schedule
Opis — z kodu źródłowego
Filters the schedule name for a hook.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$schedule | string | false | Schedule for the hook. False if not found. |
$hook | string | Action hook to execute when cron is run. |
$args | array | Arguments to pass to the hook's callback function. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_schedule', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_schedule', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii