Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Found it. This action fires when the user clicks the activate link from the activation-email.

    
    do_action( 'bp_core_activated_user', $user_id, $key, $user );
    

    Further investigation shows that the following added to functions.php will run if the “activate” button is clicked from the wp-admin by an existing admin. It will not run from the activate link in the user activation-email.

    I must be looking for a different action.

    The goal is to login the user and redirect them after they have clicked the activate link from the activation-email.

    
    add_action( 'bp_core_signup_after_activate', 'bp_autologin_on_activation', 1 );
    function bp_autologin_on_activation( $signup_ids ) {
    	print_r($signup_ids); die('bp_autologin_on_activation');
    }
    

    I’ll do some more testing.

    I was mainly trying to find out if this action was one that needed to be called in a special way.

    Some actions need to be called from within a function that is hooked to another action.

    No errors, no print_r. The user is activated and sent to the sites home_url().

    It’s as if my function is being over looked. I thought maybe it needed to be called at a specific point in time so I dropped it in the functions.php to try and circumvent any timing issues.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar