LLMS_Generator::add_hooks()
Add actions and filters used by the class.
Return Return
(void)
Source Source
File: includes/class.llms.generator.php
protected function add_hooks() {
// Watch creation of things, used on generation completion to return results of created objects.
foreach ( array( 'access_plan', 'course', 'section', 'lesson', 'quiz', 'question', 'term', 'user' ) as $type ) {
add_action( 'llms_generator_new_' . $type, array( $this, 'object_created' ) );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |