customize_render_control
Action HookDescription
Fires just before the current Customizer control is rendered.Hook Information
File Location |
wp-includes/class-wp-customize-control.php
View on GitHub
|
Hook Type | Action |
Line Number | 408 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Control
|
$control
|
WP_Customize_Control instance. |
Usage Examples
Basic Usage
<?php
// Hook into customize_render_control
add_action('customize_render_control', 'my_custom_function', 10, 1);
function my_custom_function($control) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-control.php:408
- How this hook is used in WordPress core
<?php
403 *
404 * @since 3.4.0
405 *
406 * @param WP_Customize_Control $control WP_Customize_Control instance.
407 */
408 do_action( 'customize_render_control', $this );
409
410 /**
411 * Fires just before a specific Customizer control is rendered.
412 *
413 * The dynamic portion of the hook name, `$this->id`, refers to
PHP Documentation
<?php
/**
* Fires just before the current Customizer control is rendered.
*
* @since 3.4.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-customize-control.php
Related Hooks
Related hooks will be displayed here in future updates.