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
Return Return
(void)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.8 | Introduced. |