Recent

Exclusion_ServiceclassPro only

Exclusion_Service

Manage posts excluded from related-post results.

Namespace: WebberZone\Contextual_Related_Posts\Pro
Since: 4.5.0
Source: includes/pro/class-exclusion-service.php line 21

Methods

set()

Set a post’s exclusion state.

Since: 4.5.0
Line: 32

public function set( int $post_id, bool $excluded ): array|\WP_Error;
Type Name Description
int $post_id Post ID.
bool $excluded Whether the post is excluded.

Returns: array|\WP_Error — Exclusion state or an error.

get_all()

Get excluded posts.

Since: 4.5.0
Line: 60

public function get_all( int $limit = ..., int $offset = ... ): array;
Type Name Description
int $limit Maximum posts to return.
int $offset Number of posts to skip.

Returns: array — Excluded post records.