Menu

## ActionScheduler_wpCommentLogger extends ActionScheduler_Logger
in package

ActionScheduler_wpCommentLogger.php : 6

Class ActionScheduler_wpCommentLogger

### Table of Contents

AGENT = 'ActionScheduler'
TYPE = 'action_log'
$logger : mixed
delete_comment_count_cache() : mixed
  Delete comment count cache whenever there is new comment or the status of a comment changes. Cache will be regenerated next time ActionScheduler_wpCommentLogger::filter_comment_count() is called.
disable_comment_counting() : mixed
enable_comment_counting() : mixed
filter_comment_count() : object
  Remove action log entries from wp_count_comments()
filter_comment_feed() : string
  Make sure Action Scheduler logs are excluded from comment feeds, which use WP_Query, not the WP_Comment_Query class handled by @see self::filter_comment_queries().
filter_comment_queries() : mixed
filter_comment_query_clauses() : array<string|int, mixed>
get_entry() : ActionScheduler_LogEntry
get_logs() : array<string|int, ActionScheduler_LogEntry>
init() : mixed
instance() : ActionScheduler_Logger
log() : string
log_canceled_action() : mixed
log_completed_action() : mixed
log_failed_action() : mixed
log_failed_fetch_action() : mixed
log_ignored_action() : mixed
log_reset_action() : mixed
log_started_action() : mixed
log_stored_action() : mixed
log_timed_out_action() : mixed
log_unexpected_shutdown() : mixed
create_wp_comment() : mixed
get_comment() : mixed
get_comment_count() : object
  Retrieve the comment counts from our cache, or the database if the cached version isn't set.
get_where_clause() : string
  Return a SQL clause to exclude Action Scheduler comments.

### Constants

#### AGENT

ActionScheduler_wpCommentLogger.php : 7
`public mixed AGENT = 'ActionScheduler'`

#### TYPE

ActionScheduler_wpCommentLogger.php : 8
`public mixed TYPE = 'action_log'`

### Properties

#### $logger

ActionScheduler_Logger.php : 8
`private static mixed $logger = NULL`

### Methods

#### delete_comment_count_cache()

ActionScheduler_wpCommentLogger.php : 211

Delete comment count cache whenever there is new comment or the status of a comment changes. Cache will be regenerated next time ActionScheduler_wpCommentLogger::filter_comment_count() is called.

`public delete_comment_count_cache() : mixed`

##### Return values

mixed —

#### disable_comment_counting()

ActionScheduler_wpCommentLogger.php : 233
`public disable_comment_counting() : mixed`

##### Return values

mixed —

#### enable_comment_counting()

ActionScheduler_wpCommentLogger.php : 236
`public enable_comment_counting() : mixed`

##### Return values

mixed —

#### filter_comment_count()

ActionScheduler_wpCommentLogger.php : 152

Remove action log entries from wp_count_comments()

`public filter_comment_count(array<string|int, mixed> $stats, int $post_id) : object`

##### Parameters

$stats : array<string|int, mixed>
$post_id : int

##### Return values

object —

#### filter_comment_feed()

ActionScheduler_wpCommentLogger.php : 127

Make sure Action Scheduler logs are excluded from comment feeds, which use WP_Query, not the WP_Comment_Query class handled by @see self::filter_comment_queries().

`public filter_comment_feed(string $where, WP_Query $query) : string`

##### Parameters

$where : string
$query : WP_Query

##### Return values

string —

#### filter_comment_queries()

ActionScheduler_wpCommentLogger.php : 95
`public filter_comment_queries(WP_Comment_Query $query) : mixed`

##### Parameters

$query : WP_Comment_Query

##### Return values

mixed —

#### filter_comment_query_clauses()

ActionScheduler_wpCommentLogger.php : 111
`public filter_comment_query_clauses(array<string|int, mixed> $clauses, WP_Comment_Query $query) : array<string|int, mixed>`

##### Parameters

$clauses : array<string|int, mixed>
$query : WP_Comment_Query

##### Return values

array<string|int, mixed> —

#### get_entry()

ActionScheduler_wpCommentLogger.php : 48
`public get_entry(string $entry_id) : ActionScheduler_LogEntry`

##### Parameters

$entry_id : string

##### Return values

ActionScheduler_LogEntry —

#### get_logs()

ActionScheduler_wpCommentLogger.php : 64
`public get_logs(string $action_id) : array<string|int, ActionScheduler_LogEntry>`

##### Parameters

$action_id : string

##### Return values

array<string|int, ActionScheduler_LogEntry> —

#### init()

ActionScheduler_wpCommentLogger.php : 218
`public init() : mixed`

##### Tags

codeCoverageIgnore

##### Return values

mixed —

#### instance()

ActionScheduler_Logger.php : 13
`public static instance() : ActionScheduler_Logger`

##### Return values

ActionScheduler_Logger —

#### log()

ActionScheduler_wpCommentLogger.php : 17
`public log(string $action_id, string $message[, DateTime $date = NULL ]) : string`

##### Parameters

$action_id : string
$message : string
$date : DateTime = NULL

##### Return values

string —

The log entry ID

#### log_canceled_action()

ActionScheduler_Logger.php : 65
`public log_canceled_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_completed_action()

ActionScheduler_Logger.php : 73
`public log_completed_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_failed_action()

ActionScheduler_Logger.php : 77
`public log_failed_action(mixed $action_id, Exception $exception) : mixed`

##### Parameters

$action_id : mixed
$exception : Exception

##### Return values

mixed —

#### log_failed_fetch_action()

ActionScheduler_Logger.php : 99
`public log_failed_fetch_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_ignored_action()

ActionScheduler_Logger.php : 95
`public log_ignored_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_reset_action()

ActionScheduler_Logger.php : 91
`public log_reset_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_started_action()

ActionScheduler_Logger.php : 69
`public log_started_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_stored_action()

ActionScheduler_Logger.php : 61
`public log_stored_action(mixed $action_id) : mixed`

##### Parameters

$action_id : mixed

##### Return values

mixed —

#### log_timed_out_action()

ActionScheduler_Logger.php : 81
`public log_timed_out_action(mixed $action_id, mixed $timeout) : mixed`

##### Parameters

$action_id : mixed
$timeout : mixed

##### Return values

mixed —

#### log_unexpected_shutdown()

ActionScheduler_Logger.php : 85
`public log_unexpected_shutdown(mixed $action_id, mixed $error) : mixed`

##### Parameters

$action_id : mixed
$error : mixed

##### Return values

mixed —

#### create_wp_comment()

ActionScheduler_wpCommentLogger.php : 27
`protected create_wp_comment(mixed $action_id, mixed $message, DateTime $date) : mixed`

##### Parameters

$action_id : mixed
$message : mixed
$date : DateTime

##### Return values

mixed —

#### get_comment()

ActionScheduler_wpCommentLogger.php : 86
`protected get_comment(mixed $comment_id) : mixed`

##### Parameters

$comment_id : mixed

##### Return values

mixed —

#### get_comment_count()

ActionScheduler_wpCommentLogger.php : 167

Retrieve the comment counts from our cache, or the database if the cached version isn't set.

`protected get_comment_count() : object`

##### Return values

object —

#### get_where_clause()

ActionScheduler_wpCommentLogger.php : 139

Return a SQL clause to exclude Action Scheduler comments.

`protected get_where_clause() : string`

##### Return values

string —

## Search results