• Resolved miwebdesigns

    (@miwebdesigns)


    Hi,

    Great plugin.

    I have restricted site access pointing to the WordPress Login Page.

    The problem is when I create a new user the activation page is bypassed and they are directed to the Login Page.

    The page I want excluded from your restriction is wp-activate.php

    Can you share the code how I can do this?

    I did see code where the ‘feed’ page was successfully bypassed, but I placed the ‘wp-activate.php’ page instead but it did not work.

    Your help would be appreciated.

    Michael.

Viewing 1 replies (of 1 total)
  • Hi @miwebdesigns,

    I can confirm the issue and we already have a Pull Request in the review queue to fix this issue: https://github.com/10up/restricted-site-access/pull/116.

    Meanwhile, you can use the following snippet, place it in your theme functions.php or a custom plugin:

    
    add_filter( 'restricted_site_access_is_restricted', function( $is_restricted, $wp ) {
    	if ( 'wp-activate.php' === $wp->request ) {
    		return false;
    	}
    
    	return $is_restricted;
    }, 10, 2 );
    
Viewing 1 replies (of 1 total)

The topic ‘Exlude Activation Page (wp-activate.php)’ is closed to new replies.