Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function disable_lost_password() {
- if (isset( $_GET['action'] )){
- if ( in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) ) {
- wp_redirect( wp_login_url(), 301 );
- exit;
- }
- }
- }
- add_action( "login_init", "disable_lost_password" );
Advertisement
Add Comment
Please, Sign In to add comment