Removes a customize section.
Description
Note that removing the section doesn’t destroy the WP_Customize_Section instance or remove its filters.
Parameters
$id
stringrequired- Section ID.
Source
public function remove_section( $id ) {
unset( $this->sections[ $id ] );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
To remove Colors section completely use the following code.