get_header_image
Filters the header image URL.
Использование
add_filter( 'get_header_image', 'wp_kama_get_header_image_filter' ); /** * Function for `get_header_image` filter-hook. * * @param string $url Header image URL. * * @return string */ function wp_kama_get_header_image_filter( $url ){ // filter... return $url; }
- $url(строка)
- Header image URL.
Список изменений
С версии 6.1.0 | Введена. |
Где вызывается хук
get_header_image
wp-includes/theme.php 1238
$url = apply_filters( 'get_header_image', $url );