WP HOOKS
filtrod 4.1.0

default_page_template_title

Args 2Plik wp-admin/includes/meta-boxes.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the title of the default page template displayed in the drop-down.

Parametry

ParametrTypOpis
$labelstringThe display value for the default page template title.
$contextstringWhere 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
}

Popularne w tej kategorii