LLMS_Controller_Awards::init()

Constructor.


Return Return

(void)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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