BO_AWARDRANK_A::award_points( $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/badgeos/actions/bo-awardrank-a.php

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



		$rank_id = $action_data['meta'][ $this->action_meta ];
		badgeos_update_user_rank( [
			'user_id' => $user_id,
			'rank_id' => $rank_id,
		] );

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