WP HOOKS
filtrod 5.1.0

pre_get_ready_cron_jobs

Args 1Plik wp-includes/cron.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filter to override retrieving ready cron jobs.

Returning an array will short-circuit the normal retrieval of ready cron jobs, causing the function to return the filtered value instead.

Parametry

ParametrTypOpis
$prenull | array[]Array of ready cron tasks to return instead. Default null to continue using results from _get_cron_array().

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_get_ready_cron_jobs', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii