WP_Customize_Selective_Refresh
- Since
- 4.5.0
- Source
wp-includes/customize/class-wp-customize-selective-refresh.php:15
Core Customizer class for implementing selective refresh.
Compatibility
- WordPress
- since 4.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 7
Every hook that fires from inside WP_Customize_Selective_Refresh, in the order it appears in the class, grouped by the method that fires it.
WP_Customize_Selective_Refresh::add_partial()
- apply_filters( customize_dynamic_partial_args )filter line 102
- apply_filters( customize_dynamic_partial_class )filter line 105
Properties · 4
$managerWP_Customize_Managerpublic- Customize manager.
$partialsWP_Customize_Partial[]protected- Registered instances of WP_Customize_Partial.
$triggered_errorsarrayprotected- Log of errors triggered when partials are rendered.
$current_partial_idstring|nullprotected- Keep track of the current partial being rendered.
Methods · 12
- __construct()Plugin bootstrap for Partial Refresh functionality.
- partials()Retrieves the registered partials.
- add_partial()Adds a partial.
- get_partial()Retrieves a partial.
- remove_partial()Removes a partial.
- init_preview()Initializes the Customizer preview.
- enqueue_preview_scripts()Enqueues preview scripts.
- export_preview_data()Exports data in preview after it has finished rendering so that partials can be added at runtime.
- add_dynamic_partials()Registers dynamically-created partials.
- is_render_partials_request()Checks whether the request is for rendering partials.
- handle_error()Handles PHP errors triggered during rendering the partials.
- handle_render_partials_request()Handles the Ajax request to return the rendered partials for the requested placements.
Changelog
Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/customize/class-wp-customize-selective-refresh.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.