WordPress.org

Forums

Restricted Site Access
Over-righting a few pages. (1 post)

  1. CreativeWP
    Member
    Posted 2 years ago #

    I am running a website that most of the pages will be restricted. BUT some pages, like Register or login should be accessibly! Also, I would love about or even the home page. I got this code, but I can not fathom how to exclude those pages via this code.

    add_filter( 'restricted_site_access_is_restricted', 'my_rsa_feed_override' );
    
    function my_rsa_feed_override( $is_restricted ) {
        global $wp;
        // check query variables to see if this is the feed
        if ( ! empty( $wp->query_vars['feed'] ) )
            $is_restricted = false;
        return $is_restricted;
    }

    http://wordpress.org/extend/plugins/restricted-site-access/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Restricted Site Access
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic