WP_Customize_Manager::_sanitize_external_header_video() WordPress Method

The WP_Customize_Manager::_sanitize_external_header_video() method is used to sanitize an external header video. This is used to ensure that the video URL is properly formatted and is safe to use.

WP_Customize_Manager::_sanitize_external_header_video( string $value ) #

Callback for sanitizing the external_header_video value.


Parameters

$value

(string)(Required)URL.


Top ↑

Return

(string) Sanitized URL.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

	public function _sanitize_external_header_video( $value ) {
		return esc_url_raw( trim( $value ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.7.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More