Clanbite Social Kit

remove_accepted_friendship( int $friendship_id, int $acting_user_id ): true|\WP_Error

Remove an accepted friendship row (either participant may end the friendship).

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$friendship_id (int) Required

Row ID.

$acting_user_id (int) Required

Must be user_id or friend_user_id on the row.

Returns

true|\WP_Error

Defined in inc/Social/Data_Access.php