WP_Customize_Manager::remove_control() WordPress Method
The WP_Customize_Manager::remove_control() method is used to remove a registered control from the Customizer. This should be used when a control is no longer needed or when it needs to be replaced with a new control.
WP_Customize_Manager::remove_control( string $id ) #
Removes a customize control.
Description
Note that removing the control doesn’t destroy the WP_Customize_Control instance or remove its filters.
Parameters
- $id
(string)(Required)ID of the control.
Source
File: wp-includes/class-wp-customize-manager.php
public function remove_control( $id ) { unset( $this->controls[ $id ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |