mtv\wp\models\User::register PHP Метод

register() публичный Метод

public register ( )
    public function register()
    {
        $this->validate();
        // split incoming data and keep the stuff we can pass to
        // update_user_meta. Set the user's password as meta so that we don't
        // haveto ask the user for it again after activation.
        $this->user_meta = array_merge(array_diff_assoc($this->attributes, parse_user($this->attributes)), array('user_pass' => wp_hash_password($this->user_pass)));
        wpmu_signup_user($this->user_login, $this->user_email, $this->user_meta);
    }