Skip to:
Content
Pages
Categories
Search
Top
Bottom

extending bp-registration-options plugin

  • Hi,

    I am trying to include one wordpress page in a piece of code of this wonderfull plugin, but cannot succeed. The page I want to include in the check is /gendata/

    the code is:

    elseif ( $bp->current_component && $user_ID > 0 && ( $bp->displayed_user->userdata == '' || $bp->displayed_user->userdata != '' && $bp->displayed_user->id != $user_ID ) ) {
    $user = get_userdata( $user_ID );
    if ( 69 == $user->user_status ) {
    wp_redirect( $bp->loggedin_user->domain );
    exit();
    }

    I tried by changing this piece to:

    elseif ( ($bp->current_component || site_url() . '/gendata') && $user_ID > 0 && ( $bp->displayed_user->userdata == '' || $bp->displayed_user->userdata != '' && $bp->displayed_user->id != $user_ID ) ) {
    $user = get_userdata( $user_ID );
    if ( 69 == $user->user_status ) {
    wp_redirect( $bp->loggedin_user->domain );
    exit();
    }

    this unfortunately causes an endless loop on my website (http://www.croeze.net)

    If anyone from the community can help me with the correct php codepiece for this it would be highly appreciated!

    many thanks in advance

  • The topic ‘extending bp-registration-options plugin’ is closed to new replies.
Skip to toolbar