WP HOOKS
filtrod 6.6.0

wp_default_autoload_value

Args 4Plik wp-includes/option.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Allows to determine the default autoload value for an option where no explicit value is passed.

Parametry

ParametrTypOpis
$autoloadbool | nullThe default autoload value to set. Returning true will be set as 'auto-on' in the database, false will be set as 'auto-off', and null will be set as 'auto'.
$optionstringThe passed option name.
$valuemixedThe passed option value to be saved.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_default_autoload_value', 'twoja_funkcja', 10, 4 );

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

Popularne w tej kategorii