-
Hi,
i can not setup the priceValidUntil on variable product.
Have found this fix for product feed, but i use the schema from rank math:
// priceValidUntil function func_woocommerce_structured_data_product_offer( $markup, $product ) { if ( empty( $markup[ 'priceValidUntil' ] ) ) { $markup[ 'priceValidUntil' ] = '2050-01-01'; } return $markup; } add_filter( 'woocommerce_structured_data_product_offer', 'func_woocommerce_structured_data_product_offer', 10, 2 );
which hook in rank math or woocommerce addon can i use for it? Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘priceValidUntil missing’ is closed to new replies.