php Visual Composer - 删除我们不使用的VC元素
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Visual Composer - 删除我们不使用的VC元素相关的知识,希望对你有一定的参考价值。
<?php // Remove Visual Composer elements we're not using
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 Button Element
vc_remove_element( 'vc_facebook' );
// Remove VC Separator Element
vc_remove_element( 'vc_separator' );
vc_remove_element( 'vc_text_separator' );
vc_remove_element( 'vc_hoverbox' );
vc_remove_element( 'vc_tweetmeme' );
vc_remove_element( 'vc_googleplus' );
vc_remove_element( 'vc_pinterest' );
vc_remove_element( 'vc_gallery' );
vc_remove_element( 'vc_tta_pageable' );
vc_remove_element( 'vc_gmaps' );
vc_remove_element( 'vc_flickr' );
vc_remove_element( 'vc_masonry_grid' );
vc_remove_element( 'vc_masonry_media_grid' );
//vc_remove_element( 'rev_slider' );
//vc_remove_element( 'rev_slider_vc' );
vc_remove_element( 'vc_tabs' );
vc_remove_element( 'vc_accordion' );
vc_remove_element( 'qode_banner' );
vc_remove_element( 'blockquote' );
vc_remove_element( 'masonry_blog' );
vc_remove_element( 'blog_slider' );
vc_remove_element( 'button' );
vc_remove_element( 'action' );
vc_remove_element( 'countdown' );
vc_remove_element( 'counter' );
vc_remove_element( 'cover_boxes' );
vc_remove_element( 'custom_font' );
vc_remove_element( 'qode_google_map' );
vc_remove_element( 'icons' );
vc_remove_element( 'icon_list_item' );
vc_remove_element( 'icon_text' );
vc_remove_element( 'image_hover' );
vc_remove_element( 'image_with_text' );
vc_remove_element( 'image_with_text_over' );
vc_remove_element( 'text_marquee' );
vc_remove_element( 'expanding_images' );
vc_remove_element( 'latest_post_two' );
vc_remove_element( 'line_graph' );
vc_remove_element( 'qode_masonry_gallery' );
vc_remove_element( 'message' );
vc_remove_element( 'qode_parallax_layers' );
vc_remove_element( 'pie_chart' );
vc_remove_element( 'pie_chart2' );
vc_remove_element( 'pie_chart3' );
vc_remove_element( 'pie_chart_with_icon' );
vc_remove_element( 'portfolio_list' );
vc_remove_element( 'portfolio_slider' );
vc_remove_element( 'progress_bar' );
vc_remove_element( 'progress_bar_icon' );
vc_remove_element( 'progress_bar_vertical' );
vc_remove_element( 'qode_carousel' );
vc_remove_element( 'image_slider_no_space' );
vc_remove_element( 'separator_with_icon' );
vc_remove_element( 'service_table' );
vc_remove_element( 'social_icons' );
vc_remove_element( 'social_share' );
vc_remove_element( 'social_share_list' );
vc_remove_element( 'q_team' );
vc_remove_element( 'testimonials' );
vc_remove_element( 'testimonials_carousel' );
vc_remove_element( 'testimonials_masonry' );
vc_remove_element( 'qode_animation_holder' );
vc_remove_element( 'animated_icons_with_text' );
vc_remove_element( 'qode_circles' );
vc_remove_element( 'qode_clients' );
vc_remove_element( 'qode_elements_holder' );
vc_remove_element( 'qode_content_slider' );
vc_remove_element( 'qode_advanced_call_to_action' );
vc_remove_element( 'qode_advanced_image_gallery' );
vc_remove_element( 'qode_advanced_pricing_list' );
vc_remove_element( 'qode_advanced_pricing_table' );
vc_remove_element( 'qode_blog_carousel_titled' );
vc_remove_element( 'qode_button_v2' );
vc_remove_element( 'qode_call_to_action_section' );
vc_remove_element( 'qode_cards_gallery' );
vc_remove_element( 'qode_cards_slider' );
vc_remove_element( 'qode_comparative_features_table' );
vc_remove_element( 'qode_crossfade_images' );
vc_remove_element( 'qode_elliptical_slider' );
vc_remove_element( 'qode_gradient_icon_with_text' );
vc_remove_element( 'qode_horizontal_timeline' );
vc_remove_element( 'qode_image_with_icon_and_text' );
vc_remove_element( 'qode_info_card_with_icon' );
vc_remove_element( 'qode_info_card' );
vc_remove_element( 'qode_interactive_icon_showcase' );
vc_remove_element( 'qode_interest_rate_calculator' );
vc_remove_element( 'qode_item_showcase' );
vc_remove_element( 'latest_post' );
vc_remove_element( 'qode_multi_device_showcase' );
vc_remove_element( 'qode_numbered_process' );
vc_remove_element( 'qode_pricing_calculator' );
vc_remove_element( 'qode_report_sheet' );
vc_remove_element( 'qode_scrolling_image' );
vc_remove_element( 'qode_simple_quote' );
vc_remove_element( 'qode_sliding_image_holder' );
vc_remove_element( 'qode_specification_list' );
vc_remove_element( 'qode_split_scrolling_section' );
vc_remove_element( 'qode_vertical_separator' );
vc_remove_element( 'qode_video_box' );
vc_remove_element( 'qode_workflow' );
vc_remove_element( 'qode_pricing_list' );
vc_remove_element( 'qode_pricing_tables' );
vc_remove_element( 'qode_vertical_split_slider' );
vc_remove_element( 'qode_horizontal_marquee' );
vc_remove_element( 'qode_preview_slider' );
vc_remove_element( 'qode_in_device_slider' );
vc_remove_element( 'vc_widget_sidebar' );
//vc_remove_element( 'vc_raw_html' );
vc_remove_element( 'vc_raw_js' );
}
}
?>
以上是关于php Visual Composer - 删除我们不使用的VC元素的主要内容,如果未能解决你的问题,请参考以下文章
php Visual Composer Prestashop插件
php 联系Form 7 w / Visual Composer Grid