• Resolved viorel

    (@vioreleremia)


    Hi guys,

    I’m one of Brizy. devs.
    A few users reported us an incompatibility issue with PhastPress this is happening in our build mode because of a minification of js scripts that PhastPress does. I tried to disable the minify for only brizy build mode but I can’t find any hook to your code.
    Can we have a hook here, next to the elementor code something like that

    
    // Elementor: Do not optimize previews, when loaded in an IFrame in the editor.
    if (isset($_GET['elementor-preview'])) {
        return;
    }
    
    if ( apply_filters( 'phastpress_disable_optimize', false ) ) {
        return;
    }
    

    so we can use this way to disable optimize:
    add_filter('phastpress_disable_optimize', '__return_true');

    Regards,

Viewing 1 replies (of 1 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi Viorel,

    Thanks for making an effort to make your plugin compatible with PhastPress!

    I’ve added the requested hook. It’s called phastpress_disable.

    Since PhastPress is started during plugins_loaded, you must insert your hook as soon as your plugin’s PHP files are included, or using plugins_loaded with a priority lower than the default 10.

    Good luck!

    –Albert

Viewing 1 replies (of 1 total)
  • The topic ‘Compatibility with Brizy builder’ is closed to new replies.