Make exception for password recovery link
-
Hello and thank you for this great plugin. I have this plugin paired with User registration. So far it works great, but I have a problem that the password recovery link is not working.
I use this code in my functions.php to enable 3 pages – “my-account” – (User control panel), “login” – (my login page) and “privacy” – (GDPR and stuff).
add_filter( 'restricted_site_access_is_restricted', function( $is_restricted, $wp ) { if( 'my-account' === $wp->request ) { return false; } return $is_restricted; }, 10, 2 );
Now the password recovery link is using this syntax
https://<website>/my-account?action=rp&key=<key>&login=<UserID>
Unfortunately this link is getting caught by Restricted Site Access and redirected to login page. Could you help me how to write an exception that could let this link pass through without opening the whole site? Thanks.
- The topic ‘Make exception for password recovery link’ is closed to new replies.