customize_render_control_(id)
Fires just before a specific Customizer control is rendered.
The dynamic portion of the hook name, $this->id, refers to the control ID.
Usage
add_action( 'customize_render_control_(id)', 'wp_kama_customize_render_control_id_action' ); /** * Function for `customize_render_control_(id)` action-hook. * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return void */ function wp_kama_customize_render_control_id_action( $control ){ // action... }
- $control(WP_Customize_Control)
- WP_Customize_Control instance.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
customize_render_control_(id)
wp-includes/class-wp-customize-control.php 415
do_action( "customize_render_control_{$this->id}", $this );