|
/ Documentation /General/ Adding WooCommerce Review Field Schema Markup

Adding WooCommerce Review Field Schema Markup

With Schema Pro, you can add product schema to WooCommerce pages. Along with this, you can also add schema markup for review fields with custom code. This custom code will automatically fetch schema markup for product reviews and add it to the page along with Schema Pro’s product schema.

What are review fields? Review fields are star ratings and reviews users leave on your WooCommerce product page. This helps other users to understand the experience from people who already bought a product/service. Positive reviews can build the trust factor. Similarly, review filed schema added to the page can improve your search result appearance.

Schema woo rating

Note: WoCommerce plugin itself adds schema to all its product pages by default. If you are using Schema Pro to add product schema, it is recommended to disable WooCommerce schema.

Once you add Schema Pro’s Product schema on WooCommerce product pages, you can fetch schema markup for review fields too.

Below is the custom code you can use. Copy and add this code to your child theme’s functions.php file.

add_filter( 'wp_schema_pro_add_woocommerce_review', '__return_true' );

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top