Merge pull request #16335 from woocommerce/fix/16309
Add shortcode to description output in structured data
This commit is contained in:
commit
ab543148ff
|
@ -211,7 +211,7 @@ class WC_Structured_Data {
|
||||||
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
||||||
'sku' => $product->get_sku(),
|
'sku' => $product->get_sku(),
|
||||||
'image' => wp_get_attachment_url( $product->get_image_id() ),
|
'image' => wp_get_attachment_url( $product->get_image_id() ),
|
||||||
'description' => $product->get_description(),
|
'description' => wpautop( do_shortcode( $product->get_description() ) ),
|
||||||
'seller' => array(
|
'seller' => array(
|
||||||
'@type' => 'Organization',
|
'@type' => 'Organization',
|
||||||
'name' => $shop_name,
|
'name' => $shop_name,
|
||||||
|
|
Loading…
Reference in New Issue