Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] walled garden not working


  • dainismichel
    Participant

    @dainismichel

    hi i have this code in functions.php but it is not working

    `
    function sh_walled_garden()
    {
    global $bp;

    if ( bp_is_register_page() || bp_is_activation_page() )
    return;

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
    }
    add_action( ‘walled_garden’, ‘sh_walled_garden’ );
    `

    the site is http://www.urine-therapy.org, pardon the subject matter, it might save your life, but it’s “odd” and the community likes to be a “walled garden,” especially some of the more prominent members — but they use aliases anyway.

    it would be cool to have the buddypress pages redirect to a join link though — and only be accessible to logged in members.

    i have wishlist member — so maybe that plugin can accomplish it — but i had “walled garden” working before i think — and it would be nice if the code could work.

    can you help?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] walled garden not working’ is closed to new replies.
Skip to toolbar