WordPress.org

Support

Support » Plugins and Hacks » Over-righting a few pages.

Over-righting a few pages.

  • 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/

  • The topic ‘Over-righting a few pages.’ is closed to new replies.