Skip to content

Instantly share code, notes, and snippets.

@joshhartman
Last active August 3, 2020 20:11
Show Gist options
  • Save joshhartman/d308670524b2b7449235de2dab213368 to your computer and use it in GitHub Desktop.
Save joshhartman/d308670524b2b7449235de2dab213368 to your computer and use it in GitHub Desktop.
Disable specific WordPress shortcodes when editing with Beaver Builder
<?php
function shortcode_compatibility_bb_fix() {
if ( FLBuilderModel::is_builder_active() ) {
remove_shortcode( 'team-members' );
}
}
add_action( 'wp', 'shortcode_compatibility_bb_fix' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment