Created
June 14, 2016 19:01
-
-
Save che-wf/36b5b5dc0af14b836c77b631d1806f76 to your computer and use it in GitHub Desktop.
Kill RSS Feed on Staging for WordPress
This file contains hidden or 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
| ... | |
| /** | |
| ** Disables RSS for staging | |
| **/ | |
| function disable_rss() { | |
| return null; | |
| } | |
| if($_SERVER["HTTP_HOST"] == "[staging server address]"){ | |
| add_filter('default_feed', 'disable_rss'); | |
| } | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment