customize_render_panel
Action HookDescription
Fires before rendering a Customizer panel.Hook Information
File Location |
wp-includes/class-wp-customize-panel.php
View on GitHub
|
Hook Type | Action |
Line Number | 287 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Panel
|
$panel
|
WP_Customize_Panel instance. |
Usage Examples
Basic Usage
<?php
// Hook into customize_render_panel
add_action('customize_render_panel', 'my_custom_function', 10, 1);
function my_custom_function($panel) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-panel.php:287
- How this hook is used in WordPress core
<?php
282 *
283 * @since 4.0.0
284 *
285 * @param WP_Customize_Panel $panel WP_Customize_Panel instance.
286 */
287 do_action( 'customize_render_panel', $this );
288
289 /**
290 * Fires before rendering a specific Customizer panel.
291 *
292 * The dynamic portion of the hook name, `$this->id`, refers to
PHP Documentation
<?php
/**
* Fires before rendering a Customizer panel.
*
* @since 4.0.0
*
* @param WP_Customize_Panel $panel WP_Customize_Panel instance.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-customize-panel.php
Related Hooks
Related hooks will be displayed here in future updates.