LLMS_Generator::get_generators()
Get an array of valid LifterLMS generators
Return Return
(array)
Source Source
File: includes/class.llms.generator.php
protected function get_generators() { /** * Filter the list of available generators. * * @since Unknown * * @param array[] $generators Array of generators. Array key is the generator name and the array value is a callable function. */ return apply_filters( 'llms_generators', array( 'LifterLMS/BulkCourseExporter' => array( $this->courses_generator, 'generate_courses' ), 'LifterLMS/BulkCourseGenerator' => array( $this->courses_generator, 'generate_courses' ), 'LifterLMS/SingleCourseCloner' => array( $this->courses_generator, 'clone_course' ), 'LifterLMS/SingleCourseExporter' => array( $this->courses_generator, 'generate_course' ), 'LifterLMS/SingleCourseGenerator' => array( $this->courses_generator, 'generate_course' ), 'LifterLMS/SingleLessonCloner' => array( $this->courses_generator, 'clone_lesson' ), ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Load generators from LLMS_Generator_Courses() . |
4.13.0 | Use clone_course() method for cloning courses in favor of genrate_course() . |
3.3.0 | |
3.14.8 | Introduced. |