Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect syntax

  • Profile photo 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)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

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

    Profile photo of Norm1
    Norm1
    Member

    @norm1

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

    Profile photo of shanebp
    shanebp
    Moderator

    @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)
  • The topic ‘Redirect syntax’ is closed to new replies.
Skip to toolbar