apply_filters( 'clanbite_social_kit_friend_request_notification', array|false $notification_data, int $friendship_id, int $from_user_id, int $to_user_id )Filter or short-circuit friend-request notification (Clanbite Notifications).
Return false to skip. Return an array with user_id, type, title, and optional message, url, actor_id, object_type, object_id, data, dedupe for clanbite_notify().
Filter PHP
Parameters
$notification_data(array|false)Payload for clanbite_notify, or false to skip.
$friendship_id(int)Friendship row ID.
$from_user_id(int)Requester.
$to_user_id(int)Recipient.
Example
add_filter( 'clanbite_social_kit_friend_request_notification', function ( $notification_data, $friendship_id, $from_user_id, $to_user_id ) {
// Change $notification_data here.
return $notification_data;
}, 10, 4 );Defined in inc/Social/Friend_Request_Notifications.php