LLMS_Controller_Awards::init()
Constructor.
Return Return
(void)
Source Source
File: includes/controllers/class-llms-controller-awards.php
public static function init() {
foreach ( self::$post_types as $post_type ) {
$unprefixed = self::strip_prefix( $post_type );
add_action( "llms_user_earned_{$unprefixed}", array( __CLASS__, 'on_earn' ), 20, 2 );
add_action( "save_post_{$post_type}", array( __CLASS__, 'on_save' ), 20 );
}
add_action( 'rest_after_insert_llms_my_certificate', array( __CLASS__, 'on_rest_insert' ), 20, 3 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |