Skip to content

Instantly share code, notes, and snippets.

@henshaw
Created June 22, 2025 17:18
Show Gist options
  • Save henshaw/0bf6200f9f0fc27f68724aa8d2917d59 to your computer and use it in GitHub Desktop.
Save henshaw/0bf6200f9f0fc27f68724aa8d2917d59 to your computer and use it in GitHub Desktop.
Remove Yoast SEO Schema structured data
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