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::record_generation( int $id, string $type )

Records a generated post id


Description Description


Parameters Parameters

$id

(int) (Required) WP Post ID of the generated post

$type

(string) (Required) key of the stat to increment


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.generator.php

	private function record_generation( $id, $type ) {

		// add the id to the type array
		if ( ! isset( $this->posts[ $type ] ) ) {
			$this->posts[ $type ] = array();
		}

		array_push( $this->posts[ $type ], $id );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.8 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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