W3cubDocs

/WordPress

WP_Customize_Manager::_sanitize_external_header_video( string $value )

Callback for sanitizing the external_header_video value.

Parameters

$value

(string) (Required) URL.

Return

(string) Sanitized URL.

Source

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

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

Changelog

Version Description
4.7.1 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/_sanitize_external_header_video