On this page
WP_Customize_Manager::export_header_video_settings( array $response, WP_Customize_Selective_Refresh $selective_refresh, array $partials ): array
Exports header video settings to facilitate selective refresh.
Parameters
$responsearray Required-
Response.
$selective_refreshWP_Customize_Selective_Refresh Required-
Selective refresh component.
$partialsarray Required-
Array of partials.
Return
array
Source
File: wp-includes/class-wp-customize-manager.php. View all references
public function export_header_video_settings( $response, $selective_refresh, $partials ) {
if ( isset( $partials['custom_header'] ) ) {
$response['custom_header_settings'] = get_header_video_settings();
}
return $response;
}
Related
Uses
| Uses | Description |
|---|---|
| get_header_video_settings() wp-includes/theme.php | Retrieves header video settings. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/export_header_video_settings