WP HOOKS
filtrod 2.6.0

widget_title

Args 3Plik wp-includes/widgets/class-wp-widget-pages.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the widget title.

Parametry

ParametrTypOpis
$titlestringThe widget title. Default 'Pages'.
$instancearrayArray of settings for the current widget.
$id_basemixedThe widget ID.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_title', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii