Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect syntax

  • Avatar of Norm1
    Norm1
    Member

    @norm1

    Ok, I have this code:

    `wp_redirect( $bp->loggedin_user->domain );`

    But I want the redirect to go to a directory, /activity/

    How could I achieve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Try:
    `
    bp_core_redirect( get_option(‘siteurl’).”/activity” );
    `

    Avatar of Norm1
    Norm1
    Member

    @norm1

    @shanebp – How woould I make it username/activity?

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Try:

    `
    bp_core_redirect($bp->loggedin_user->domain . “/activity” );

    or

    bp_core_redirect($bp->loggedin_user->domain . “activity” );
    `

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.