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::store_temp_id( array $raw, obj $obj )
Accepts a raw object, finds the raw id and stores it
Description Description
Parameters Parameters
- $raw
-
(array) (Required) array of raw data
- $obj
-
(obj) (Required) the LLMS Post Object generated from the raw data
Return Return
(mixed) raw id when present, false if no raw id was found
Source Source
File: includes/class.llms.generator.php
private function store_temp_id( $raw, $obj ) { if ( isset( $raw['id'] ) ) { // store the id on the meta table $obj->set( 'generated_from_id', $raw['id'] ); // store it in the object for prereq handling later $this->tempids[ $obj->get( 'type' ) ][ $raw['id'] ] = $obj->get( 'id' ); return $raw['id']; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |