MASTERSTUDY_COURSEENROLLED::course_enrolled( $user_id,  $course_id )

Validation function when the trigger action is hit


Parameters Parameters

$data

(Required)


Source Source

File: src/integrations/masterstudy-lms/triggers/masterstudy-courseenrolled.php

	public function course_enrolled( $user_id, $course_id ) {



		$args = [
			'code'    => $this->trigger_code,
			'meta'    => $this->trigger_meta,
			'post_id' => $course_id,
			'user_id' => $user_id,
		];

		Automator()->maybe_add_trigger_entry( $args );

	}