ClarusDignus

Redirect lost password page

Jan 20th, 2016
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. function disable_lost_password() {
  2.     if (isset( $_GET['action'] )){
  3.         if ( in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) ) {
  4.             wp_redirect( wp_login_url(), 301 );
  5.             exit;
  6.         }
  7.     }
  8. }
  9. add_action( "login_init", "disable_lost_password" );
Advertisement
Add Comment
Please, Sign In to add comment