WordPress at a glance
function is not described

WP_Customize_Selective_Refresh::init_preview() public WP 4.5.0

Initializes the Customizer preview.

{} It's a method of the class: WP_Customize_Selective_Refresh{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh();
$WP_Customize_Selective_Refresh->init_preview();

Changelog

Since 4.5.0 Introduced.

Code of WP_Customize_Selective_Refresh::init_preview() WP 5.7.2

<?php
public function init_preview() {
	add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
	add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
}