// For backend
add_filter( 'admin_head', array( 'WPEX_Visual_Composer_Config', function() {
global $current_screen;
if ( $current_screen && 'my_post_type' == $current_screen->post_type ) {
vc_disable_frontend();
}
} ), 1 );
// For front-end
add_filter( 'wp_head', array( 'WPEX_Visual_Composer_Config', function() {
if ( is_singular() ) {
$type = get_post_type();
if ( wpex_get_singular_template_id( $type ) ) {
vc_disable_frontend();
}
}
} ), 1 );
Snippets: Disable Visual Composer Front-End Editor for Specific Post Type
All PHP snippets should be added via a child theme's functions.php file.