WP HOOKS
filtrod 6.6.0

wp_autoload_values_to_autoload

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

Opis — z kodu źródłowego

Filters the autoload values that should be considered for autoloading from the options table.

The filter can only be used to remove autoload values from the default list.

Parametry

ParametrTypOpis
$autoload_valuesstring[]Autoload values used to autoload option. Default list contains 'yes', 'on', 'auto-on', and 'auto'.

Wywołanie

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

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

Popularne w tej kategorii