MPC_MARKLESSONDONE::mark_completes_a_lesson( $user_id,  $action_data,  $recipe_id,  $args )

Validation function when the action is hit


Parameters Parameters

$user_id

(Required)

$action_data

(Required)

$recipe_id

(Required)


Source Source

File: src/integrations/memberpress-courses/actions/mpc-marklessondone.php

	public function mark_completes_a_lesson( $user_id, $action_data, $recipe_id, $args) {
		$course_id = $action_data['meta']['MPCOURSE'];
		$lesson_id = $action_data['meta']['MPLESSON'];

		$this->mark_lesson_completed( $user_id, $course_id, $lesson_id );

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