Action hook 'customize_render_panel_{$this->id}'

in WP Core File wp-includes/class-wp-customize-panel.php at line 297

View Source

customize_render_panel_{$this->id}

Action Hook
Description
Fires before rendering a specific Customizer panel. The dynamic portion of the hook name, `$this->id`, refers to the ID of the specific Customizer panel to be rendered.

Hook Information

File Location wp-includes/class-wp-customize-panel.php View on GitHub
Hook Type Action
Line Number 297

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into customize_render_panel_{$this->id}
add_action('customize_render_panel_{$this->id}', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-customize-panel.php:297 - How this hook is used in WordPress core
<?php
 292  		 * The dynamic portion of the hook name, `$this->id`, refers to
 293  		 * the ID of the specific Customizer panel to be rendered.
 294  		 *
 295  		 * @since 4.0.0
 296  		 */
 297  		do_action( "customize_render_panel_{$this->id}" );
 298  
 299  		$this->render();
 300  	}
 301  
 302  	/**

PHP Documentation

<?php
/**
		 * Fires before rendering a specific Customizer panel.
		 *
		 * The dynamic portion of the hook name, `$this->id`, refers to
		 * the ID of the specific Customizer panel to be rendered.
		 *
		 * @since 4.0.0
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/class-wp-customize-panel.php
Related Hooks

Related hooks will be displayed here in future updates.