Clanbite Social Kit

accept_friend_request( int $friendship_id, int $accepting_id ): bool|\WP_Error

Accept a pending request where current user is the target (friend_user_id).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$friendship_id (int) Required

Row ID.

$accepting_id (int) Required

Must match friend_user_id on the row.

Returns

bool|\WP_Error

Defined in inc/Social/Data_Access.php