Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Generator::get_author_id( array $raw )
Accepts raw author data and locates an existing author by email or id or creates one
Parameters Parameters
- $raw
-
(array) (Required) Author data. If id and email are provided will use id only if it matches the email for user matching that id in the database. If no id found, attempts to locate by email. If no author found and email provided, creates new user using email. Falls back to current user id. First_name, last_name, and description can be optionally provided. When provided will be used only when creating a new user.
Return Return
(int|void) A WP_User ID or void when error encountered.
Source Source
File: includes/class.llms.generator.php
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.3.3 | Use strict string comparator. |
3.3.0 | Introduced. |