WP HOOKS
filtrod 4.7.0

is_header_video_active

Args 1Plik wp-includes/theme.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether the custom header video is eligible to show on the current page.

Parametry

ParametrTypOpis
$show_videoboolWhether the custom header video should be shown. Returns the value of the theme setting for the <code>custom-header</code>'s <code>video-active-callback</code>. If no callback is set, the default value is that of <code>is_front_page()</code>.

Wywołanie

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

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

Popularne w tej kategorii