Skip to content

Instantly share code, notes, and snippets.

@cccamuseme
Created February 6, 2017 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cccamuseme/722da09a30b88beb5e0f872303308797 to your computer and use it in GitHub Desktop.
Save cccamuseme/722da09a30b88beb5e0f872303308797 to your computer and use it in GitHub Desktop.
Remove default elements in Visual Composer
// Visual Composer
// After VC Init
add_action( 'vc_after_init', 'vc_after_init_actions' );
function vc_after_init_actions() {
// Remove VC Elements
if( function_exists('vc_remove_element') ){
// Remove VC Custom Heading
vc_remove_element( 'vc_custom_heading' );
// Remove VC Tour
vc_remove_element( 'vc_tta_tour' );
// Remove VC Pageable
vc_remove_element( 'vc_tta_pageable' );
// Remove VC Line Chart
vc_remove_element( 'vc_line_chart' );
// Remove VC Round Chart
vc_remove_element( 'vc_round_chart' );
// Remove VC Pie Chart
vc_remove_element( 'vc_pie' );
// Remove VC Progress Bar
vc_remove_element( 'vc_progress_bar' );
// Remove VC Flickr
vc_remove_element( 'vc_flickr' );
// Remove VC Widget sidebar
vc_remove_element( 'vc_widget_sidebar' );
// Remove VC Image carousel
vc_remove_element( 'vc_images_carousel' );
// Remove VC Facebook
vc_remove_element( 'vc_facebook' );
// Remove VC Tweetmeme
vc_remove_element( 'vc_tweetmeme' );
// Remove VC google plus
vc_remove_element( 'vc_googleplus' );
// Remove VC Pinterest
vc_remove_element( 'vc_pinterest' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment