Support » Plugin: WPB WooCommerce Custom Tab Manager » WPB WooCommerce Custom Tab Manager & WPML compatibility

  • This is David from the WPML compatibility team. Im writing to let you know about an issue between WPB WooCommerce Custom Tab Manager & WPML plugins.

    When a user translates a product tabs, it is displayed together with its translation in the product page. This was initially reported here:
    https://wpml.org/forums/topic/tab-plugin-issue/

    The solution is simple, we need to add the ‘suppress_filters’ => false argument in function wpb_wctm_get_tabs(). This function is defined in inc/class.wpb-woocommerce-custom-tab-manager.php

    More specifically, change this:

    $args = array (
                    'post_type'          =>  'wpb_wtm_tab'  ,
                    'post_status'        =>  'publish',                
                    'posts_per_page'     =>  -1,                
                    'meta_query'         => array(
                        array(
                            'key'     => 'wpb_wctm_active_tab',
                            'value'   => '1',
                        ),
                    )    
                );

    To this:

    $args = array (
                    'post_type'          =>  'wpb_wtm_tab'  ,
                    'post_status'        =>  'publish',                
                    'posts_per_page'     =>  -1,
                    'suppress_filters'  =>  false,
                    'meta_query'         => array(
                        array(
                            'key'     => 'wpb_wctm_active_tab',
                            'value'   => '1',
                        ),
                    )    
                );

    Let me know if you would include this fix in your next release.
    Thanks
    David

  • The topic ‘WPB WooCommerce Custom Tab Manager & WPML compatibility’ is closed to new replies.