LLMS_Processor_Membership_Bulk_Enroll::init()

Initializer


Return Return

(void)


Top ↑

Source Source

File: includes/processors/class.llms.processor.membership.bulk.enroll.php

	protected function init() {

		// for the cron
		add_action( $this->schedule_hook, array( $this, 'dispatch_enrollment' ), 10, 2 );

		// for LifterLMS actions which trigger bulk enrollment
		$this->actions = array(
			'llms_membership_do_bulk_course_enrollment' => array(
				'arguments' => 2,
				'callback'  => 'schedule_enrollment',
				'priority'  => 10,
			),
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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