Last active
July 29, 2018 18:43
-
-
Save amboutwe/88f5daa9fbac090e2b6f0c5ff61e3bbb to your computer and use it in GitHub Desktop.
By default, Yoast SEO removes `?replytocom` variables from URLs. This can be reversed with the following code.
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* | |
* Yoast SEO return `?replytocom` variables | |
* Credit: Yoast development team | |
* Last Tested: Mar 23 2018 using Yoast SEO 7.1 on WordPress 4.9.4 | |
*/ | |
add_filter( 'wpseo_remove_reply_to_com', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment