RECOVER PASSWORD SOLUTION
-
For those of you struggling to exclude a page from being restricted or recover password link not working, add this to functions.php file. Change pagename to whatever page you want to exclude.
add_filter( ‘restricted_site_access_is_restricted’, ‘my_restricted_check’ );
function my_restricted_check( $is_restricted ) {
global $wp;
if (
$wp->query_vars[‘pagename’] == ‘recover’
)
$is_restricted = false;
return $is_restricted;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘RECOVER PASSWORD SOLUTION’ is closed to new replies.