filtrod 6.6.0
wp_autoload_values_to_autoload
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
| Parametr | Typ | Opis |
|---|---|---|
$autoload_values | string[] | 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
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_autoload_values_to_autoload', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii