Logs
in package
Table of Contents
- $commentType : mixed
- $postType : mixed
- __construct() : mixed
- addHideFromCommentsActions() : mixed
- fixCommentsCount() : array<string|int, mixed>
- Remove logs from the wp_count_comments function
- hideFromComments() : mixed
- Exclude logs from comments
- hideFromComments_pre41() : array<string|int, mixed>
- Exclude logs from comments
- hideFromFeed() : string
- Exclude logs from comment feeds
- removeHideFromCommentsActions() : mixed
Properties
$commentType
protected
mixed
$commentType
$postType
protected
mixed
$postType
Methods
__construct()
public
__construct(mixed $postType) : mixed
Parameters
- $postType : mixed
Return values
mixed —addHideFromCommentsActions()
public
addHideFromCommentsActions() : mixed
Return values
mixed —fixCommentsCount()
Remove logs from the wp_count_comments function
public
fixCommentsCount(array<string|int, mixed> $stats, int $postId) : array<string|int, mixed>
Parameters
- $stats : array<string|int, mixed>
- $postId : int
-
Post ID
Return values
array<string|int, mixed> —Array of comment counts
hideFromComments()
Exclude logs from comments
public
hideFromComments(WP_Comment_Query $query) : mixed
Parameters
- $query : WP_Comment_Query
Return values
mixed —hideFromComments_pre41()
Exclude logs from comments
public
hideFromComments_pre41(array<string|int, mixed> $clauses, WP_Comment_Query $wp_comment_query) : array<string|int, mixed>
Parameters
- $clauses : array<string|int, mixed>
-
Comment clauses for comment query
- $wp_comment_query : WP_Comment_Query
Return values
array<string|int, mixed> —$clauses Updated comment clauses
hideFromFeed()
Exclude logs from comment feeds
public
hideFromFeed(string $where, WP_Comment_Query $wp_comment_query) : string
Parameters
- $where : string
- $wp_comment_query : WP_Comment_Query
Return values
string —$where
removeHideFromCommentsActions()
public
removeHideFromCommentsActions() : mixed