filtrod 5.9.0
default_template_types
Opis — z kodu źródłowego
Filters the list of default template types.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$default_template_types | array[] | { The default template types. @type array ...$0 { Data for the template type. @type string $title Template type title. @type string $description Template type description. } } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'default_template_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'default_template_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii