• Resolved WebMat

    (@webmatpro)


    Hello,

    can you add the compatibility with Elementor please, like:

    // Check if Elementor installed and activated
    if ( did_action( 'elementor/loaded' ) ) {
    	add_filter( 'yikes_woo_use_the_content_filter', '__return_false' );
    }
    

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @webmatpro,

    You’ll need to do the following:

    This will allow your tabs to use this as a replacement for the_content filter.

    
    if ( did_action( 'elementor/loaded' ) ) {
    
        add_filter( 'yikes_woo_use_the_content_filter', '__return_false' );
    
        add_filter( 'yikes_woo_filter_main_tab_content', 'yikes_woo_custom_tab_content_filter', 10, 1 );
    
        function yikes_woo_custom_tab_content_filter( $content ) {
            $content = function_exists( 'capital_P_dangit' ) ? capital_P_dangit( $content ) : $content;
            $content = function_exists( 'wptexturize' ) ? wptexturize( $content ) : $content;
            $content = function_exists( 'convert_smilies' ) ? convert_smilies( $content ) : $content;
            $content = function_exists( 'wpautop' ) ? wpautop( $content ) : $content;
            $content = function_exists( 'shortcode_unautop' ) ? shortcode_unautop( $content ) : $content;
            $content = function_exists( 'prepend_attachment' ) ? prepend_attachment( $content ) : $content;
            $content = function_exists( 'wp_make_content_images_responsive' ) ? wp_make_content_images_responsive( $content ) : $content;
            $content = function_exists( 'do_shortcode' ) ? do_shortcode( $content ) : $content;
    
            if ( class_exists( 'WP_Embed' ) ) {
                // Deal with URLs
                $embed = new WP_Embed;
                $content = method_exists( $embed, 'autoembed' ) ? $embed->autoembed( $content ) : $content;
            }
    
            return $content;
        }
    }

    @webmatpro,

    I just added this functionality into the plugin if you’re still trying to implement with Elementor. Now you just go into your Custom Product Tabs page in WordPress and turn on the ‘the_content’ filter setting. This should solve all page builder related issues.

    Cheers,
    Freddie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add snippet compatibility with Elementor’ is closed to new replies.