Created
October 22, 2013 15:11
-
-
Save tacoverdo/7102453 to your computer and use it in GitHub Desktop.
Prevent addition of prev/next rel link by WordPress SEO
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
<?php | |
/** | |
* Prevent addition of prev/next rel link by WordPress SEO | |
* | |
* @return string Returns empty string | |
*/ | |
function tv_remove_prevnext_links () { | |
/* If you want to remove the prev/next links from specific pages, | |
this would be the place to add some filter. | |
*/ | |
return ''; | |
} | |
add_filter('wpseo_next_rel_link', 'tv_remove_prevnext_links'); | |
add_filter('wpseo_prev_rel_link', 'tv_remove_prevnext_links'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment