LLMS_Order_Generator::commit_user()
Registers or updates the user from the submitted data.
Return Return
(integer|WP_Error) Returns the WP_User
ID on success or an error object.
Source Source
File: includes/class-llms-order-generator.php
protected function commit_user() { $args = array( 'plan' => $this->plan, ); $user_id = get_current_user_id() ? llms_update_user( $this->data, 'checkout', $args ) : llms_register_user( $this->data, 'checkout', true, $args ); if ( ! is_wp_error( $user_id ) ) { $this->student = llms_get_student( $user_id ); } return $user_id; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |