Clanbite Social Kit

ensure_accepted_friendship_between( int $user_a, int $user_b ): void

Ensure an accepted friendship exists between two users (creates or upgrades a row; idempotent).

Stores a single directional row using ascending user IDs when inserting, matching how mutual friendship discovery works in self::get_accepted_friend_ids().

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$user_a (int) Required

First user ID.

$user_b (int) Required

Second user ID.

Returns

void

Defined in inc/Social/Data_Access.php