customize_render_control_(id) хук-событиеWP 3.4.0

Fires just before a specific Customizer control is rendered.

The dynamic portion of the hook name, $this->id, refers to the control ID.


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...
WP_Customize_Control instance.

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

wp-includes/class-wp-customize-control.php 415
do_action( "customize_render_control_{$this->id}", $this );

Где используется хук в WordPress

Использование не найдено.