apply_filters( 'clanbite_social_kit_can_view_post', bool $can, object $post, int $viewer_id )Filters whether a viewer may read a single social post.
Runs for every post action that checks visibility (single post, comments, reactions, shares). Return false to hide a post; returning true for a post the plugin denied exposes it, so apply your own check first.
Filter PHP
Parameters
$can(bool)Whether the viewer may read the post.
$post(object)Row from cp_social_posts.
$viewer_id(int)Current user (0 if logged out).
Example
add_filter( 'clanbite_social_kit_can_view_post', function ( $can, $post, $viewer_id ) {
// Change $can here.
return $can;
}, 10, 3 );Defined in inc/Rest/Rest_Controller.php