Skip to content

Instantly share code, notes, and snippets.

@joshhartman
Last active July 5, 2022 21:23
Show Gist options
  • Select an option

  • Save joshhartman/dda0205cad5d99ccc235b73a7fad8629 to your computer and use it in GitHub Desktop.

Select an option

Save joshhartman/dda0205cad5d99ccc235b73a7fad8629 to your computer and use it in GitHub Desktop.

Revisions

  1. joshhartman revised this gist Jul 5, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions functions.php
    Original 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() ) {
  2. joshhartman created this gist Jul 5, 2022.
    8 changes: 8 additions & 0 deletions functions.php
    Original 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' );