accept_friend_request( int $friendship_id, int $accepting_id ): bool|\WP_ErrorAccept a pending request where current user is the target (friend_user_id).
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access
Parameters
$friendship_id(int) RequiredRow ID.
$accepting_id(int) RequiredMust match friend_user_id on the row.
Returns
bool|\WP_Error
Defined in inc/Social/Data_Access.php