Thread Starter
dimail
(@dimail)
it is necessary that the global description be applied to all products, regardless of whether the product has a description or not.
Thread Starter
dimail
(@dimail)
I found this filter:
add_action( 'rank_math/frontend/description', function( $generated ) { if ( ! is_product() ) { return $generated; } global $post; $desc = RankMath\Helper::get_settings( "titles.pt_product_description" ); $desc = RankMath\Helper::replace_vars( $desc, $post ); return empty( $desc ) ? $generated : $desc; });
it is different from yours, what is the difference between them?