apply_filters( 'ep_skip_action_sync_post_comments', $skip, $post_id, $comment_ids ) → {bool}
Filter to allow skipping the indexing of a post's comments when the post status changes
By default, they are skipped if there are more comments than the Content Items per Index Cycle, to avoid timeouts. Skipped comments are indexed in the next sync. If the post is not public, skipped comments are removed from the index instead.
Parameters:
| Name | Type | Description |
|---|---|---|
$skip |
bool | Whether to skip indexing the comments. |
$post_id |
int | Post ID. |
$comment_ids |
array | IDs of the post's comments. |
- Since:
- 5.3.7
- Source:
Returns:
New value of whether to skip indexing the comments
- Type
- bool