Filter: classifai_should_classify_post

apply_filters( 'classifai_should_classify_post', $should_classify, $post_id ) → {bool}

Filter whether ClassifAI should classify a post.

Default is true, return false to skip classifying a post.

Parameters:
Name Type Description
$should_classify bool

Whether the post should be classified. Default true, return false to skip classification for this post.

$post_id int

The ID of the post to be considered for classification.

Since:
  • 1.2.0
Source:
Returns:

Whether the post should be classified.

Type
bool

apply_filters( 'classifai_should_classify_post', $should_classify, $post_id ) → {bool}

Filter whether ClassifAI should classify a post.

Default is true, return false to skip classifying a post.

Parameters:
Name Type Description
$should_classify bool

Whether the post should be classified. Default true, return false to skip classification for this post.

$post_id int

The ID of the post to be considered for classification.

Since:
  • 1.2.0
Source:
Returns:

Whether the post should be classified.

Type
bool