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


(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.

Top ↑

Return Return

(int|void) A WP_User ID or void when error encountered.

Top ↑

Source Source

File: includes/class.llms.generator.php

Top ↑

Changelog Changelog

Version Description
4.3.3 Use strict string comparator.
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.