LLMS_REST_Users_Controller::map_schema_to_database()
Map request keys to database keys for insertion
Description Description
Array keys are the request fields (as defined in the schema) and array values are the database fields.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-users-controller.php
/** * Map request keys to database keys for insertion * * Array keys are the request fields (as defined in the schema) and * array values are the database fields. * * @since 1.0.0-beta.1 * @since 1.0.0-beta.11 Correctly map request's `billing_postcode` param to `billing_zip` meta. * * @return array */ protected function map_schema_to_database() { $map = parent::map_schema_to_database(); $map['username'] = 'user_login'; $map['password'] = 'user_pass'; $map['name'] = 'display_name';
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.11 | Correctly map request's billing_postcode param to billing_zip meta. |
1.0.0-beta.1 | Introduced. |