filtrod 4.1.0
default_page_template_title
Opis — z kodu źródłowego
Filters the title of the default page template displayed in the drop-down.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$label | string | The display value for the default page template title. |
$context | string | Where the option label is displayed. Possible values include 'meta-box' or 'quick-edit'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'default_page_template_title', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'default_page_template_title', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii