WP_Customize_Selective_Refresh::__construct() WordPress Method

The WP_Customize_Selective_Refresh::__construct() method allows you to selectively refresh your WordPress site. This is useful if you want to make changes to your site without refreshing the whole page.

WP_Customize_Selective_Refresh::__construct( WP_Customize_Manager $manager ) #

Plugin bootstrap for Partial Refresh functionality.


Parameters

$manager

(WP_Customize_Manager)(Required)Customizer bootstrap instance.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

	public function __construct( WP_Customize_Manager $manager ) {
		$this->manager = $manager;
		require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php';

		add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.