# Remove Controls
Elementor Core IntermediateTo remove existing control developers can simply unregister existing control by passing the control name.
# Hooks
To do that we need to hook to the elementor/controls/register
action which holds the controls manager, and pass the control name to the unregister()
method.
# Unregistering Controls
To unregister existing controls use the following code:
function unregister_controls( $controls_manager ) {
$controls_manager->unregister( 'control-1' );
$controls_manager->unregister( 'control-2' );
}
add_action( 'elementor/controls/register', 'unregister_controls' );
1
2
3
4
5
6
7
2
3
4
5
6
7