WPDev.one
Core Class

WP_Customize_Selective_Refresh

class WP_Customize_Selective_Refresh // Constructor: function Object() { [native code] }

Core Customizer class for implementing selective refresh.

Methods 12 methods

Method / Return Description
__construct()
void

Plugin bootstrap for Partial Refresh functionality.

Parameters: $manager: WP_Customize_Manager
partials()
array

Retrieves the registered partials.

add_partial()
WP_Customize_Partial

Adds a partial.

Parameters: $id: mixed, $args: mixed
get_partial()
(WP_Customize_Partial

Retrieves a partial.

Parameters: $id: mixed
remove_partial()
void

Removes a partial.

Parameters: $id: mixed
init_preview()
void

Initializes the Customizer preview.

enqueue_preview_scripts()
void

Enqueues preview scripts.

export_preview_data()
void

Exports data in preview after it has finished rendering so that partials can be added at runtime.

add_dynamic_partials()
WP_Customize_Partial[]

Registers dynamically-created partials.

Parameters: $partial_ids: mixed
is_render_partials_request()
bool

Checks whether the request is for rendering partials.

handle_error()
true

Handles PHP errors triggered during rendering the partials.

Parameters: $errno: mixed, $errstr: mixed, $errfile: mixed, $errline: mixed
handle_render_partials_request()
void

Handles the Ajax request to return the rendered partials for the requested placements.

Properties

Property / Type Description
$manager
mixed
public
No description available.
$partials
mixed
public
No description available.
$triggered_errors
mixed
public
No description available.
$current_partial_id
mixed
public
No description available.

Class Information

Since Version
4.5.0
Source File
wp-includes/customize/class-wp-customize-selective-refresh.php
Advertisement