Snippets: Enable Default WPBakery Templates

Important: Since Total 4.0 there are no longer any default templates available to choose from when using the WPBakery Page Builder. However, we've included our own custom Section Templates function exclusive to Total instead which offers nicer and better templates! So we don't really recommend using the code below, but leave it just incase someone (maybe not using our awesome theme) wants to make use of the snippet.

add_action( 'init', function() {
	global $wpex_visual_composer_config;
	if ( $wpex_visual_composer_config ) {
		remove_action( 'vc_load_default_templates', array( $wpex_visual_composer_config, 'default_templates' ) );
	} else {
		 remove_action( 'vc_load_default_templates', array( 'WPEX_Visual_Composer_Config', 'default_templates' ) );
} );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)