Remove default remote templates from the Elementor template library
-
Is there any trick to remove default remote templates from the Elementor template library?
I have tried the below code to remove default remote templates and it’s working fine but removing my custom templates too.
/** * Register our custom source. */ add_action( 'elementor/init', function() { include 'includes/source.php'; // Unregister source with closure binding, thank Steve. $unregister_source = function($id) { unset( $this->_registered_sources[ $id ] ); }; $unregister_source->call( \Elementor\Plugin::instance()->templates_manager, 'remote'); \Elementor\Plugin::instance()->templates_manager->register_source( 'Elementor\TemplateLibrary\Source_Custom' ); }, 15 );
Thank you
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Remove default remote templates from the Elementor template library’ is closed to new replies.