Skip to content

Instantly share code, notes, and snippets.

@leandwo
Last active August 22, 2020 21:26
Show Gist options
  • Save leandwo/f0285d630fa5c17684c72163eac85234 to your computer and use it in GitHub Desktop.
Save leandwo/f0285d630fa5c17684c72163eac85234 to your computer and use it in GitHub Desktop.
These are the hooks needed to disable or filter on yoast meta tags added to each page
<?php
add_filter( 'wpseo_json_ld_output', '__return_false' );
add_filter( 'wpseo_robots', '__return_false' );
add_filter( 'wpseo_canonical', '__return_false' );
add_filter( 'wpseo_title', '__return_false' );
add_filter( 'wpseo_metadesc', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment