Action hook 'customize_render_section'

in WP Core File wp-includes/class-wp-customize-section.php at line 304

View Source

customize_render_section

Action Hook
Description
Fires before rendering a Customizer section.

Hook Information

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

Hook Parameters

Type Name Description
WP_Customize_Section $section WP_Customize_Section instance.

Usage Examples

Basic Usage
<?php
// Hook into customize_render_section
add_action('customize_render_section', 'my_custom_function', 10, 1);

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

Source Code Context

wp-includes/class-wp-customize-section.php:304 - How this hook is used in WordPress core
<?php
 299  		 *
 300  		 * @since 3.4.0
 301  		 *
 302  		 * @param WP_Customize_Section $section WP_Customize_Section instance.
 303  		 */
 304  		do_action( 'customize_render_section', $this );
 305  		/**
 306  		 * Fires before rendering a specific Customizer section.
 307  		 *
 308  		 * The dynamic portion of the hook name, `$this->id`, refers to the ID
 309  		 * of the specific Customizer section to be rendered.

PHP Documentation

<?php
/**
		 * Fires before rendering a Customizer section.
		 *
		 * @since 3.4.0
		 *
		 * @param WP_Customize_Section $section WP_Customize_Section instance.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/class-wp-customize-section.php
Related Hooks

Related hooks will be displayed here in future updates.