akcjadynamicznyod 3.4.0
customize_render_control_{$this->id}
Args 1Plik wp-includes/class-wp-customize-control.php
Opis — z kodu źródłowego
Fires just before a specific Customizer control is rendered.
The dynamic portion of the hook name, $this->id, refers to the control ID.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$control | \WP_Customize_Control | WP_Customize_Control instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'customize_render_control_{$this->id}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'customize_render_control_{$this->id}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii