Last active
August 29, 2015 14:06
-
-
Save ejntaylor/e132877f73bca0733913 to your computer and use it in GitHub Desktop.
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
add_action ('template_redirect','hide_fe'); | |
function hide_fe() { | |
if (!is_admin()) { | |
wp_redirect(admin_url('/', 'http'), 301); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment