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


Top ↑

Return Return

(mixed) raw id when present, false if no raw id was found


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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