WP_Customize_Manager::remove_section( string $id )
Remove a customize section.
Description Description
Parameters Parameters
- $id
-
(string) (Required) Section ID.
Source Source
File: wp-includes/class-wp-customize-manager.php
public function remove_section( $id ) {
unset( $this->sections[ $id ] );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
To remove Colors section completely use the following code.
function blogpress_theme_colors_section( $wp_customize ) { $wp_customize->remove_section( 'colors' ); } add_action( 'customize_register', 'blogpress_theme_colors_section' );