WP HOOKS
filtrdynamicznyod 3.0.0

pre_set_site_transient_{$transient}

Args 2Plik wp-includes/option.php

Opis — z kodu źródłowego

Filters the value of a specific site transient before it is set.

The dynamic portion of the hook name, $transient, refers to the transient name.

Parametry

ParametrTypOpis
$valuemixedNew value of site transient.
$transientstringTransient name.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_set_site_transient_{$transient}', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii