With the next functions you will be able to remove all visual composer templates.

COPY CODE

function my_custom_template_modify_array( $data ) {
    return array(); // This will remove all default templates. Basically, you should use native PHP functions to modify existing array and then return it.

}

function trigger_at_init(){
    add_filter( 'vc_load_default_templates', 'my_custom_template_modify_array' ); // Hook in
    remove_action('vc_load_default_templates_action','kleo_custom_template_for_vc');
}
add_action('vc_before_init_base', 'trigger_at_init');

NOTE: Kleo child theme needs to be installed and activated

The codes will be added to wp-content/themes/kleo-child/functions.php

References : https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524300

Cheers
R.

Log in with your credentials

Forgot your details?