WP HOOKS
filtrod 5.1.0

get_schedule

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

Opis — z kodu źródłowego

Filters the schedule name for a hook.

Parametry

ParametrTypOpis
$schedulestring | falseSchedule for the hook. False if not found.
$hookstringAction hook to execute when cron is run.
$argsarrayArguments 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
}

Popularne w tej kategorii