WP_Customize_Manager::export_header_video_settings( array $response, WP_Customize_Selective_Refresh $selective_refresh, array $partials ): array

In this article

Exports header video settings to facilitate selective refresh.

Parameters

$responsearrayrequired
Response.
$selective_refreshWP_Customize_Selective_Refreshrequired
Selective refresh component.
$partialsarrayrequired
Array of partials.

Return

array

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

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.