Clanbite Social Kit REST

do_action( 'clanbite_social_kit_friendship_accepted', int $friendship_id, int $user_id, int $friend_user_id, object $row )

Fires when a friendship request is accepted.

Action PHP

Parameters

$friendship_id (int)

Friendship row ID.

$user_id (int)

Request sender (user_id).

$friend_user_id (int)

Request recipient (friend_user_id / accepter).

$row (object)

Friendship row.

Example

add_action( 'clanbite_social_kit_friendship_accepted', function ( $friendship_id, $user_id, $friend_user_id, $row ) {
	// Run your code.
}, 10, 4 );

Defined in inc/Rest/Rest_Controller.php