Fix Elementor editor issues when using Autoptimize

Fix Elementor editor issues when using Autoptimize on child sites.

Snippet Type

Execute on Child Sites

Snippet

if ( defined( 'ELEMENTOR_VERSION' ) && is_user_logged_in() && current_user_can( 'edit_posts' ) ) {
    add_filter( 'autoptimize_filter_js_noptimize', '__return_true' );
}
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.