Clanbite Social Kit

record_view( int $post_id, int $user_id ): void

Record a unique view for a post for the given logged-in user.

Uses a per-user meta key so each user increments a post at most once.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$post_id (int) Required

Social post ID.

$user_id (int) Required

Viewer user ID.

Returns

void

Defined in inc/Social/Data_Access.php