get_header_image filter-hookWP 6.1.0

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()
get_header_image
wp-includes/theme.php 1238
$url = apply_filters( 'get_header_image', $url );

Where the hook is used in WordPress

Usage not found.