WP HOOKS
akcjaod 4.5.0

customize_render_partials_after

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

Opis — z kodu źródłowego

Fires immediately after partials are rendered.

Plugins may do things like call wp_footer() to scrape scripts output and return them via the {@see 'customize_render_partials_response'} filter.

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_after', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii