Created
January 3, 2024 00:01
-
-
Save henshaw/ea3bad878ff49f82c76ca62aea3dd705 to your computer and use it in GitHub Desktop.
Remove Yoast Schema output from WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_yoast_json($data){ | |
$data = array(); | |
return $data; | |
} | |
add_filter('wpseo_json_ld_output', 'remove_yoast_json', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced on Google News Guide: How to optimize your site and article content to appear in Google News