Created
June 22, 2025 17:18
-
-
Save henshaw/0bf6200f9f0fc27f68724aa8d2917d59 to your computer and use it in GitHub Desktop.
Remove Yoast SEO Schema structured data
This file contains hidden or 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