Skip to content

Instantly share code, notes, and snippets.

@petersplugins
Last active January 31, 2017 21:14
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 petersplugins/4ce5d0c77dc68f0f5d952eceb43bcd2f to your computer and use it in GitHub Desktop.
Save petersplugins/4ce5d0c77dc68f0f5d952eceb43bcd2f to your computer and use it in GitHub Desktop.
<?php
// This code snippet stops WordPress from redirecting a variety of URLs to the admin area
remove_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment