Exports header video settings to facilitate selective refresh.
Parameters
$response
arrayrequired- Response.
$selective_refresh
WP_Customize_Selective_Refreshrequired- Selective refresh component.
$partials
arrayrequired- Array of partials.
Source
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;
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.