Filter hook 'get_header_video_url'

in WP Core File wp-includes/theme.php at line 1674

View Source

get_header_video_url

Filter Hook
Description
Filters the header video URL.

Hook Information

File Location wp-includes/theme.php View on GitHub
Hook Type Filter
Line Number 1674

Hook Parameters

Type Name Description
string $url Header video URL, if available.

Usage Examples

Basic Usage
<?php
// Hook into get_header_video_url
add_filter('get_header_video_url', 'my_custom_filter', 10, 1);

function my_custom_filter($url) {
    // Your custom filtering logic here
    return $url;
}

Source Code Context

wp-includes/theme.php:1674 - How this hook is used in WordPress core
<?php
1669  	 *
1670  	 * @since 4.7.3
1671  	 *
1672  	 * @param string $url Header video URL, if available.
1673  	 */
1674  	$url = apply_filters( 'get_header_video_url', $url );
1675  
1676  	if ( ! $id && ! $url ) {
1677  		return false;
1678  	}
1679  

PHP Documentation

<?php
/**
	 * Filters the header video URL.
	 *
	 * @since 4.7.3
	 *
	 * @param string $url Header video URL, if available.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/theme.php
Related Hooks

Related hooks will be displayed here in future updates.