akcjaod 4.5.0
customize_render_partials_after
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
| Parametr | Typ | Opis |
|---|---|---|
$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. |
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
}
// 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