filtrod 3.5.0
cron_request
Opis — z kodu źródłowego
Filters the cron request arguments.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cron_request_array | array | { An array of cron request URL arguments. @type string $url The cron request URL. @type string $key The Unix timestamp (UTC) of the cron lock with microseconds. @type array $args { An array of cron request arguments. @type int $timeout The request timeout in seconds. Default .01 seconds. @type bool $blocking Whether to set blocking for the request. Default false. @type bool $sslverify Whether SSL should be verified for the request. Default false. } } |
$doing_wp_cron | string | The Unix timestamp (UTC) of the cron lock with microseconds. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'cron_request', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'cron_request', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii