Created
April 21, 2014 10:41
-
-
Save rhyswynne/11139039 to your computer and use it in GitHub Desktop.
Stop WP Maintenance Mode returning a 503: Service Unavailable Error
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
<?php | |
add_filter('wp_maintenance_mode_status_code', 'rhyswynne_return_200',10,3); | |
function rhyswynne_return_200() { | |
return 200; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment