[ Index ]

PHP Cross Reference of WordPress




/wp-includes/customize/ -> class-wp-customize-selective-refresh.php (summary)

Customize API: WP_Customize_Selective_Refresh class

File Size: 440 lines (14 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions


Functions that are not part of a class:

__construct( WP_Customize_Manager $manager )   X-Ref
Plugin bootstrap for Partial Refresh functionality.

param: WP_Customize_Manager $manager Customizer bootstrap instance.
since: 4.5.0

partials()   X-Ref
Retrieves the registered partials.

return: array Partials.
since: 4.5.0

add_partial( $id, $args = array()   X-Ref
Adds a partial.

return: WP_Customize_Partial The instance of the partial that was added.
param: WP_Customize_Partial|string $id   Customize Partial object, or Partial ID.
param: array                       $args Optional. Array of properties for the new Partials object.
since: 4.5.0

get_partial( $id )   X-Ref
Retrieves a partial.

return: WP_Customize_Partial|null The partial, if set. Otherwise null.
param: string $id Customize Partial ID.
since: 4.5.0

remove_partial( $id )   X-Ref
Removes a partial.

param: string $id Customize Partial ID.
since: 4.5.0

init_preview()   X-Ref
Initializes the Customizer preview.

since: 4.5.0

enqueue_preview_scripts()   X-Ref
Enqueues preview scripts.

since: 4.5.0

export_preview_data()   X-Ref
Exports data in preview after it has finished rendering so that partials can be added at runtime.

since: 4.5.0

add_dynamic_partials( $partial_ids )   X-Ref
Registers dynamically-created partials.

return: WP_Customize_Partial[] Array of added WP_Customize_Partial instances.
param: string[] $partial_ids Array of the partial IDs to add.
since: 4.5.0

is_render_partials_request()   X-Ref
Checks whether the request is for rendering partials.

Note that this will not consider whether the request is authorized or valid,
just that essentially the route is a match.

return: bool Whether the request is for rendering partials.
since: 4.5.0

handle_error( $errno, $errstr, $errfile = null, $errline = null )   X-Ref
Handles PHP errors triggered during rendering the partials.

These errors will be relayed back to the client in the Ajax response.

return: true Always true.
param: int    $errno   Error number.
param: string $errstr  Error string.
param: string $errfile Error file.
param: int    $errline Error line.
since: 4.5.0

handle_render_partials_request()   X-Ref
Handles the Ajax request to return the rendered partials for the requested placements.

since: 4.5.0

Generated: Sun Apr 14 01:00:02 2024 Cross-referenced by PHPXref 0.7.1