WP HOOKS
filtrod 6.0.0

wp_admin_bar_show_site_icons

Args 1Plik wp-includes/admin-bar.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether to show the site icons in toolbar.

Returning false to this hook is the recommended way to hide site icons in the toolbar. A truthy return may have negative performance impact on large multisites.

Parametry

ParametrTypOpis
$show_site_iconsboolWhether site icons should be shown in the toolbar. Default true.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_admin_bar_show_site_icons', 'twoja_funkcja' );

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

Popularne w tej kategorii