get_header_image
Filters the header image URL.
Usage
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(string)
- Header image URL.
Changelog
Since 6.1.0 | Introduced. |
Where the hook is called
get_header_image
wp-includes/theme.php 1238
$url = apply_filters( 'get_header_image', $url );