WPCOM_VIP_Support_User::action_user_register PHP Méthode

action_user_register() public méthode

When a user is registered we reset VIP Support role to inactive, then wait until they recover their password to mark their role as active. If they do not go through password recovery then we send the verification email when they first log in.
public action_user_register ( integer $user_id )
$user_id integer The ID of the user which has been registered.
    public function action_user_register($user_id)
    {
        $user = new WP_User($user_id);
        if ($this->is_a8c_email($user->user_email) && $this->user_has_vip_support_role($user->ID)) {
            $this->demote_user_from_vip_support_to($user->ID, WPCOM_VIP_Support_Role::VIP_SUPPORT_INACTIVE_ROLE);
            $this->registering_a11n = true;
            // @TODO Abstract this into an UNVERIFY method
            $this->mark_user_email_unverified($user_id);
            $this->send_verification_email($user_id);
        } else {
            if (self::MSG_BLOCK_UPGRADE_NON_A11N == $this->message_replace) {
                $this->message_replace = self::MSG_BLOCK_NEW_NON_VIP_USER;
            }
        }
    }