Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved]How to redirect registration page to activity?

@tatakatte

Participant

@Here’s everything that I have in my functions.php

<?php
/**
 * @package WordPress
 * @subpackage
 * @author
 * @since 1.0
 */

/**
 * Child Theme Functions
 * Add custom code below
*/ 

function my_login_redirect() {
    if ( is_user_logged_in() && bp_is_register_page() )
        bp_core_redirect( home_url() . '/stream/' );
}
add_action( 'template_redirect', 'my_login_redirect' );

As for @bphelp’s, the slug is really /stream/. I checked it after reading your reply, but it really is /stream/. Also shouldn’t it return a 404-error if it’s a non-existent page? Please correct me if my understanding is wrong.

Skip to toolbar