akcjadynamicznyod 4.0.0
customize_render_panel_{$this->id}
Args 0Plik wp-includes/class-wp-customize-panel.php
Opis — z kodu źródłowego
Fires before rendering a specific Customizer panel.
The dynamic portion of the hook name, $this->id, refers to the ID of the specific Customizer panel to be rendered.
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'customize_render_panel_{$this->id}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'customize_render_panel_{$this->id}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii