filtrod 4.7.0
is_header_video_active
Opis — z kodu źródłowego
Filters whether the custom header video is eligible to show on the current page.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$show_video | bool | Whether 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
}
// rejestracja funkcji zwrotnej
add_filter( 'is_header_video_active', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii