WP HOOKS
akcjaod 4.5.0

customize_render_partials_before

Args 2Plik wp-includes/customize/class-wp-customize-selective-refresh.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately before partials are rendered.

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.

Parametry

ParametrTypOpis
$refresh\WP_Customize_Selective_RefreshSelective refresh component.
$partialsarrayPlacements' 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.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'customize_render_partials_before', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii