customize_render_partials_before WordPress Action Hook

The customize_render_partials_before hook allows you to render partials before they are printed to the screen. This can be useful for previewing changes or for adding custom data to the partials.

do_action( 'customize_render_partials_before', WP_Customize_Selective_Refresh $refresh, array $partials ) #

Fires immediately before partials are rendered.


Description

Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts and styles which may get enqueued in the response.


Top ↑

Parameters

$refresh

(WP_Customize_Selective_Refresh)Selective refresh component.

$partials

(array)Placements' context data for the partials rendered in the request. The array is keyed by partial ID, with each item being an array of the placements' context data.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.