Last active
July 5, 2022 21:23
-
-
Save joshhartman/dda0205cad5d99ccc235b73a7fad8629 to your computer and use it in GitHub Desktop.
Revisions
-
joshhartman revised this gist
Jul 5, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ <?php // Disable specific WordPress shortcodes when editing with Beaver Builder function shortcode_compatibility_bb_fix() { if ( FLBuilderModel::is_builder_active() ) { -
joshhartman created this gist
Jul 5, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // 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' );