Closed strategio closed 3 years ago
We (WPML) need this filter to fix this issue in a smarter way.
And this is how we are planning to use this new filter hook (POF):
add_filter( 'rank_math/frontend/breadcrumb/is_using_shop_base', function( $isUsingShopBase ) { if ( $isUsingShopBase ) { return $isUsingShopBase; } $defaultShop = wpml_collect( Translations::get( wc_get_page_id( 'shop' ), 'post_page' ) ) ->first( Obj::prop( 'original' ) ); $productBase = Obj::prop( 'product_base', wc_get_permalink_structure() ); return $productBase === '/' . get_post( Obj::prop( 'element_id', $defaultShop ) )->post_name; }
https://onthegosystems.myjetbrains.com/youtrack/issue/wpmlwpseo-156
Hi @strategio
Thank you for the PR. We have merged it and released the update v1.0.62.
Thank you @surajv :)
We (WPML) need this filter to fix this issue in a smarter way.
And this is how we are planning to use this new filter hook (POF):
https://onthegosystems.myjetbrains.com/youtrack/issue/wpmlwpseo-156