Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
Created December 3, 2015 20:31
Show Gist options
  • Save lucas-pelton/95904d4ba5244dc295e2 to your computer and use it in GitHub Desktop.
Save lucas-pelton/95904d4ba5244dc295e2 to your computer and use it in GitHub Desktop.
Remove Vantage-added components from Page Builder
add_action ('init', 'lp_remove_vantage_row_options_from_pagebuilder',12);
add_action ('admin_head', 'lp_remove_vantage_row_options_from_pagebuilder',12);
function lp_remove_vantage_row_options_from_pagebuilder() {
remove_filter('siteorigin_panels_prebuilt_layouts', 'vantage_prebuilt_page_layouts');
remove_filter('siteorigin_panels_row_styles', 'vantage_panels_row_styles');
remove_filter('siteorigin_panels_row_style_fields', 'vantage_panels_row_style_fields', 11);
remove_filter('siteorigin_panels_row_style_attributes', 'vantage_panels_panels_row_style_attributes', 10, 2);
remove_filter('siteorigin_panels_row_attributes', 'vantage_panels_panels_row_attributes', 10, 2);
remove_filter('siteorigin_panels_widgets', 'vantage_panels_add_widget_groups');
remove_filter('siteorigin_panels_widget_dialog_tabs', 'vantage_panels_add_widgets_dialog_tabs');
remove_filter('siteorigin_panels_full_width_container', 'vantage_panels_add_full_width_container');
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment