GC_Customize_Manager::export_header_video_settings()
最后更新于:2021-11-27 00:54:50
GC_Customize_Manager::export_header_video_settings( array$response, GC_Customize_Selective_Refresh$selective_refresh, array$partials)Export header video settings to facilitate selective refresh.
参数
- $response
-
(array) (Required) Response.
- $selective_refresh
-
(GC_Customize_Selective_Refresh) (Required) Selective refresh component.
- $partials
-
(array) (Required) Array of partials.
响应
(array)
源文件
文件: gc-includes/class-gc-customize-manager.php
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;
}