Skip to content

Instantly share code, notes, and snippets.

@amboutwe
Last active July 29, 2018 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amboutwe/88f5daa9fbac090e2b6f0c5ff61e3bbb to your computer and use it in GitHub Desktop.
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.
<?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