BDB_USERACCEPTFRIENDREQUEST::bp_friends_friendship_accepted( $id,  $initiator_user_id,  $friend_user_id,  $friendship )

Validation function when the trigger action is hit


Parameters Parameters

$id

(Required)

$initiator_user_id

(Required)

$friend_user_id

(Required)

$friendship

(Required)


Source Source

File: src/integrations/buddyboss/triggers/bdb-useracceptfriendrequest.php

	public function bp_friends_friendship_accepted( $id, $initiator_user_id, $friend_user_id, $friendship ) {



		$args = [
			'code'           => $this->trigger_code,
			'meta'           => $this->trigger_meta,
			'user_id'        => $friend_user_id,
			'ignore_post_id' => true,
			'is_signed_in'   => true,
		];

		Automator()->maybe_add_trigger_entry( $args );
	}