Warning: This method has been deprecated. LLMS_Generator::get_author_id_from_raw() is deprecated in favor of LLMS_Generator_Courses::get_author_id_from_raw() instead.
LLMS_Generator::get_author_id_from_raw( array $raw, int $fallback_author_id = null )
Receives a raw array of course, plan, section, lesson, etc data and gets an author id
Description Description
Falls back to optionally supplied fallback id. Falls back to current user id.
Parameters Parameters
- $raw
-
(array) (Required) raw data
- $fallback_author_id
-
(int) (Optional) WP User ID
Default value: null
Return Return
(int|WP_Error)
Source Source
File: includes/class.llms.generator.php
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.7.0 | LLMS_Generator::get_author_id_from_raw() is deprecated in favor of LLMS_Generator_Courses::get_author_id_from_raw() . |
3.30.2 | Made publicly accessible. |
3.3.0 | Introduced. |