customize_render_panel
Fires before rendering a Customizer panel.
Использование
add_action( 'customize_render_panel', 'wp_kama_customize_render_panel_action' );
/**
* Function for `customize_render_panel` action-hook.
*
* @param WP_Customize_Panel $panel WP_Customize_Panel instance.
*
* @return void
*/
function wp_kama_customize_render_panel_action( $panel ){
// action...
}
- $panel(WP_Customize_Panel)
- WP_Customize_Panel instance.
Список изменений
| С версии 4.0.0 | Введена. |
Где вызывается хук
customize_render_panel
wp-includes/class-wp-customize-panel.php 287
do_action( 'customize_render_panel', $this );