LLMS_Generator
LLMS_Generator class.
Description Description
Source Source
File: includes/class.llms.generator.php
Changelog Changelog
Version | Description |
---|---|
3.36.3 | New method: is_generator_valid() Bugfix: Fix return of set_generator() . |
3.30.2 | Added hooks and made numerous private functions public to expand extendability. |
3.3.0 | Introduced. |
Methods Methods
- __construct — Construct a new generator instance with data
- add_custom_values — Add custom data to a post based on the 'custom' array — deprecated
- add_hooks — Add actions and filters used by the class.
- format_date — Ensure raw dates are correctly formatted to create a post date — deprecated
- generate — When called, generates raw content based on the defined generator
- get_author_id_from_raw — Receives a raw array of course, plan, section, lesson, etc data and gets an author id — deprecated
- get_default_post_status — Retrieve the default post status for the generated set of posts — deprecated
- get_error_code — Retrieve a human-readable error code from a machine-readable error number
- get_generated_content — Retrieves a multi-dimensional array of content generated by the most class
- get_generated_courses — Retrieve the array of generated course ids
- get_generated_posts — Retrieve the array of generated post ids — deprecated
- get_generators — Get an array of valid LifterLMS generators
- get_results — Get the results of the generate function
- get_stats — Get "stats" about the generated content.
- increment — Increments a stat in the stats object — deprecated
- is_error — Determines if there was an error during the running of the generator
- is_generator_valid — Determine if a generator is a valid generator.
- object_created — Record the generation of an object
- parse_raw — Parse raw data
- record_generation — Records a generated post id
- set_default_post_status — Configure the default post status for generated posts at runtime
- set_generator — Sets the generator to use for the current instance