Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to redirect to login and return

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of caplain
    caplain
    Member

    @caplain

    It looks like what I want to do could be done in /bp-core/bp-core-catchuri.php:function bp_core_catch_no_access() by starting the function with:

    if ( $bp_no_status_set ) bp_core_redirect($bp->root_domain.”/wp-login.php?redirect_to=”.$bp_unfiltered_uri);

    instead of just returning false, but bp_core_catch_no_access() doesn’t seem to be called anywhere.

    Profile photo of caplain
    caplain
    Member

    @caplain

    A related thread, https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/no-must-login-message-or-redirect, had a short life about three weeks ago. It looks like the bp_core_catch_no_access() function is not actually used.

    Profile photo of caplain
    caplain
    Member

    @caplain

    I’m really mystified. I added to /members/single/groups/invites.php in my child theme. Then went to http://www.rocketmavericks.com/members/eric/groups/invites, but cc_core_catch_no_access() didn’t seem to be called. I was going to add my function to bp_before_group_invites_content() (see /bp-themes/bp-default/members/single/groups/invites.php:<?php do_action( 'bp_before_group_invites_content' ) for reference), but I grep'd for that function and couldn't find that function defined anywhere. Am I just stumbling upon hooks that haven't been implemented yet?

    Profile photo of caplain
    caplain
    Member

    @caplain

    I opened a ticket for the seemingly undeclared bp_before_group_invites() and for bp_core_catch_no_access(), which doesn’t appear to be called anywhere.
    https://trac.buddypress.org/ticket/2537

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to redirect to login and return’ is closed to new replies.
Skip to toolbar