BP_ADDTOGROUP::add_to_bp_group( $user_id,  $action_data,  $recipe_id )

Validation function when the action is hit


Parameters Parameters

$user_id

(Required)

$action_data

(Required)

$recipe_id

(Required)


Source Source

File: src/integrations/buddypress/actions/bp-addtogroup.php

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



		$add_to_bp_gropu = $action_data['meta'][ $this->action_meta ];

		groups_join_group( $add_to_bp_gropu, $user_id );

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