mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-02 12:02:25 +08:00
8 lines
257 B
Text
8 lines
257 B
Text
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;
|
|
}
|