<?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;