# Remove Dynamic Tags

Elementor Core Advanced

To remove existing dynamic tag developers can simply unregister existing tags by passing the dynamic tag name.

# Hooks

To do that we need to hook to the elementor/dynamic_tags/register action which holds the dynamic tags manager, and pass the dynamic tag name to the unregister() method.

# Unregistering Dynamic Tags

To unregister existing dynamic tags use the following code:

function unregister_dynamic_tags( $dynamic_tags_manager ) {

	$dynamic_tags_manager->unregister( 'dynamic-tag-1' );
	$dynamic_tags_manager->unregister( 'dynamic-tag-2' );

}
add_action( 'elementor/dynamic_tags/register', 'unregister_dynamic_tags' );
1
2
3
4
5
6
7