customize_render_panel_<id>
Fires before rendering a specific Customizer panel.
Description
do_action( 'customize_render_panel_<id>' );
The dynamic portion(s) of the hook name refer to the ID of the specific Customizer panel to be rendered.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'customize_render_panel_{$id}' );
- The following example is for adding a hook callback.
- // define the customize_render_panel_<id> callback
- function action_customize_render_panel_id( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "customize_render_panel_{$id}", 'action_customize_render_panel_id', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "customize_render_panel_{$id}", 'action_customize_render_panel_id', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/class-wp-customize-panel.php
- do_action( "customize_render_panel_{$this->id}" );