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


Top ↑

Return Return

(string|WP_Error) Name of the generator on success, otherwise an error object.


Top ↑

Source Source

File: includes/class.llms.generator.php



Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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