Clanbite Social Kit REST

do_action( 'clanbite_social_kit_friend_request_created', int $friendship_id, int $from_user_id, int $to_user_id )

Fires after a pending friend request row is created.

Action PHP

Parameters

$friendship_id (int)

New row ID.

$from_user_id (int)

Requester.

$to_user_id (int)

Recipient.

Example

add_action( 'clanbite_social_kit_friend_request_created', function ( $friendship_id, $from_user_id, $to_user_id ) {
	// Run your code.
}, 10, 3 );

Defined in inc/Rest/Rest_Controller.php