LLMS_Abstract_Generator_Posts::get_author_id( array $raw )

Accepts raw author data and locates an existing author by email or id or creates one


Description Description


Parameters Parameters

$raw

(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) WP_User ID


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Moved from LLMS_Generator and made protected instead of private.
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.