Clanbite Social Kit

decline_friend_request( int $friendship_id, int $declining_id ): object|\WP_Error

Decline (delete) a pending request where current user is the target.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$friendship_id (int) Required

Row ID.

$declining_id (int) Required

Must match friend_user_id.

Returns

object|\WP_Error Deleted friendship row payload.

Defined in inc/Social/Data_Access.php