Last active
July 5, 2022 21:23
-
-
Save joshhartman/dda0205cad5d99ccc235b73a7fad8629 to your computer and use it in GitHub Desktop.
Disable specific WordPress shortcodes when editing with Beaver Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable specific WordPress shortcodes when editing with Beaver Builder | |
function shortcode_compatibility_bb_fix() { | |
if ( FLBuilderModel::is_builder_active() ) { | |
remove_shortcode( 'gravityform' ); | |
remove_shortcode( 'fl_builder_insert_layout' ); | |
} | |
} | |
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