LLMS_Generator::set_generator( string $generator = null )
Sets the generator to use for the current instance
Description Description
Parameters Parameters
- $generator
-
(Optional) Generator string, eg: "LifterLMS/SingleCourseExporter"
Default value: null
Return Return
(string|WP_Error) Name of the generator on success, otherwise an error object.
Source Source
File: includes/class.llms.generator.php
Changelog Changelog
Version | Description |
---|---|
3.36.3 | Fix error causing null to be returned instead of expected WP_Error . Return the generator name on success instead of void. |
3.3.0 | Introduced. |