Clanbite Social Kit

user_has_reaction( int $post_id, int $user_id, string $type = 'like' ): bool

Whether user has a reaction on post.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Post ID.

$user_id (int) Required

User ID.

$type (string) Optional

Reaction type.

Default: 'like'

Returns

bool

Defined in inc/Social/Data_Access.php