GP_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/gamipress/actions/gp-awardrank-a.php

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



		$rank_id = $action_data['meta'][ $this->action_meta ];
		gamipress_update_user_rank( $user_id, $rank_id );
		Automator()->complete_action( $user_id, $action_data, $recipe_id );
	}