On Tuesday, Yoast released a rewritten Schema structured data output with their Yoast SEO 11.0 update. While the SEO tool may be great for new sites on Yoast SEO or users who do not define their own Schema structured data, it might not be the best option for those who have custom Schema.
Will Yoast SEO 11.0 cause errors with my custom schema markup?
Short answer: YES. Long answer: if you have custom schema throughout your site, or want to control your own schema, you will experience schema errors in Google’s Structured Data Testing Tool. You will need to deactivate Yoast’s schema output.
How do I completely deactivate Yoast’s Schema output?
While there are several ways you can remove the schema, the best way is to return an empty array. The reason being, you would want to assume that in order to not break future functions attached to the filter, you need to pass an array.
Add this to your functions.php file:
Ta-da! Now Yoast SEO’s schema output will become an empty array and your original schema markup, or the schema you plan on adding will not conflict.