Viewing 1 replies (of 1 total)
  • Plugin Author pkarjala

    (@pkarjala)

    Aloha @vpertsas thank you for your question! You can do this, but you must write custom PHP functionality into either your own plugin or your theme.

    Instructions on how to do so are at https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authorization.php#L504

    The sample code, which explicitly excludes RSS feeds from the check, is as follows:

    
    function my_feed_access_override( $has_access, $wp ) {
      // Check query variables to see if this is the feed.
      if ( ! empty( $wp->query_vars['feed'] ) ) {
        $has_access = true;
      }
      return $has_access;
    }
    add_filter( 'authorizer_has_access', 'my_feed_access_override', 10, 2 );
    

    I hope this helps! Please let us know if you have additional questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude specific urls from login’ is closed to new replies.