Home / Admin / Disable Schema Output for WooCommerce products
Duplicate Snippet

Embed Snippet on Your Site

Disable Schema Output for WooCommerce products

This filter can be used to Disable Schema Output for WooCommerce products.

<10
Code Preview
php
<?php
add_filter( 'aioseo_schema_disable', 'aioseo_disable_schema_products' );
function aioseo_disable_schema_products( $disabled ) {
   if ( is_singular( 'product' ) && aioseo()->helpers->isWooCommerceActive() ) {
      return true;
   }
   return $disabled;
}

Comments

Add a Comment