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.
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 ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.7.1 | Introduced. |