bp_core_activate_account

  • apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $_GET['key'] ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 178
      	global $bp, $wpdb;
      
      	if ( !bp_is_current_component( 'activate' ) )
      		return false;
      
      	// Check if an activation key has been passed
      	if ( isset( $_GET['key'] ) ) {
      
      		// Activate the signup
      		$user = apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $_GET['key'] ) );
      
      		// If there were errors, add a message and redirect
      		if ( !empty( $user->errors ) ) {
      			bp_core_add_message( $user->get_error_message(), 'error' );
      			bp_core_redirect( trailingslashit( bp_get_root_domain() . '/' . $bp->pages->activate->slug ) );
      		}
      
      		// Check for an uploaded avatar and move that to the correct user folder
      		if ( is_multisite() )
      			$hashed_key = wp_hash( $_GET['key'] );
      

Comments are closed.