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.
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' ) );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |