Documentation

ActionScheduler_wpCommentLogger extends ActionScheduler_Logger
in package

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

Properties

Methods

delete_comment_count_cache()

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

filter_comment_count()

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()

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()

public filter_comment_queries(WP_Comment_Query $query) : mixed
Parameters
$query : WP_Comment_Query
Return values
mixed

filter_comment_query_clauses()

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>

log()

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()

public log_canceled_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_completed_action()

public log_completed_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_failed_action()

public log_failed_action(mixed $action_id, Exception $exception) : mixed
Parameters
$action_id : mixed
$exception : Exception
Return values
mixed

log_failed_fetch_action()

public log_failed_fetch_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_ignored_action()

public log_ignored_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_reset_action()

public log_reset_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_started_action()

public log_started_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_stored_action()

public log_stored_action(mixed $action_id) : mixed
Parameters
$action_id : mixed
Return values
mixed

log_timed_out_action()

public log_timed_out_action(mixed $action_id, mixed $timeout) : mixed
Parameters
$action_id : mixed
$timeout : mixed
Return values
mixed

log_unexpected_shutdown()

public log_unexpected_shutdown(mixed $action_id, mixed $error) : mixed
Parameters
$action_id : mixed
$error : mixed
Return values
mixed

create_wp_comment()

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_count()

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()

Return a SQL clause to exclude Action Scheduler comments.

protected get_where_clause() : string
Return values
string

Search results