LD_MARKLESSONDONE::mark_completes_a_lesson( $user_id,  $action_data,  $recipe_id )

Validation function when the trigger action is hit


Parameters Parameters

$user_id

(Required)

$action_data

(Required)

$recipe_id

(Required)


Source Source

File: src/integrations/learndash/actions/ld-marklessondone.php

	public function mark_completes_a_lesson( $user_id, $action_data, $recipe_id ) {



		$course_id = $action_data['meta']['LDCOURSE'];
		$lesson_id = $action_data['meta'][ $this->action_meta ];
		$this->mark_steps_done( $user_id, $lesson_id, $course_id );

		Automator()->complete_action( $user_id, $action_data, $recipe_id );
	}