WP HOOKS
filtrod 3.9.0

is_wide_widget_in_customizer

Args 2Plik wp-includes/class-wp-customize-widgets.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether the given widget is considered "wide".

Parametry

ParametrTypOpis
$is_wideboolWhether the widget is wide, Default false.
$widget_idstringWidget ID.

Wywołanie

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

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

Popularne w tej kategorii