customize_section_active
Filter HookDescription
Filters response of WP_Customize_Section::active().Hook Information
| File Location | wp-includes/class-wp-customize-section.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 211 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| bool | $active | Whether the Customizer section is active. | 
| WP_Customize_Section | $section | WP_Customize_Section instance. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into customize_section_active
add_filter('customize_section_active', 'my_custom_filter', 10, 2);
function my_custom_filter($active, $section) {
    // Your custom filtering logic here
    return $active;
}
Source Code Context
                        wp-includes/class-wp-customize-section.php:211
                        - How this hook is used in WordPress core
                    
                    <?php
 206  		 * @since 4.1.0
 207  		 *
 208  		 * @param bool                 $active  Whether the Customizer section is active.
 209  		 * @param WP_Customize_Section $section WP_Customize_Section instance.
 210  		 */
 211  		$active = apply_filters( 'customize_section_active', $active, $section );
 212  
 213  		return $active;
 214  	}
 215  
 216  	/**
PHP Documentation
<?php
/**
		 * Filters response of WP_Customize_Section::active().
		 *
		 * @since 4.1.0
		 *
		 * @param bool                 $active  Whether the Customizer section is active.
		 * @param WP_Customize_Section $section WP_Customize_Section instance.
		 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 2
- File: wp-includes/class-wp-customize-section.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
