WP_Customize_Manager::export_header_video_settings
Exports header video settings to facilitate selective refresh.
Method of the class: WP_Customize_Manager{}
No Hooks.
Returns
Array.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->export_header_video_settings( $response, $selective_refresh, $partials );
- $response(array) (required)
- Response.
- $selective_refresh(WP_Customize_Selective_Refresh) (required)
- Selective refresh component.
- $partials(array) (required)
- Array of partials.
Changelog
| Since 4.7.0 | Introduced. |
WP_Customize_Manager::export_header_video_settings() WP Customize Manager::export header video settings code WP 7.0
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;
}