[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
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 |
__construct( WP_Customize_Manager $manager ) X-Ref |
Plugin bootstrap for Partial Refresh functionality. since: 4.5.0 param: WP_Customize_Manager $manager Customizer bootstrap instance. |
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. since: 4.5.0 param: WP_Customize_Partial|string $id Customize Partial object, or Partial ID. param: array $args Optional. Array of properties for the new Partials object. |
get_partial( $id ) X-Ref |
Retrieves a partial. return: WP_Customize_Partial|null The partial, if set. Otherwise null. since: 4.5.0 param: string $id Customize Partial ID. |
remove_partial( $id ) X-Ref |
Removes a partial. since: 4.5.0 param: string $id Customize Partial ID. |
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. since: 4.5.0 param: string[] $partial_ids Array of the partial IDs to add. |
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. since: 4.5.0 param: int $errno Error number. param: string $errstr Error string. param: string $errfile Error file. param: int $errline Error line. |
handle_render_partials_request() X-Ref |
Handles the Ajax request to return the rendered partials for the requested placements. since: 4.5.0 |
Generated: Tue Dec 24 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |