API / Minn\Runtime / CommentReads

CommentReads final class

Minn\Runtime\CommentReads · public/minn/src/Minn/Runtime/CommentReads.php · 38 lines

What WordPress's comment functions tell about comments: the comments a query finds, how many a post or the site has in each status, and when an approved comment last arrived.

Public

staticquery(mixed $args = ''): mixed#

The comments a query finds (get_comments): comments, ids or a count, as the comment query answers.

staticcounts(mixed $postId = 0): object#

How many comments a post or the site has in each status (wp_count_comments), unless wp_count_comments answers first.

staticlastModified(mixed $timezone = 'server'): mixed#

When an approved comment last arrived (get_lastcommentmodified), in GMT ("gmt", and the server's own, the GMT date moved by the server's offset in the database, with microseconds) or the site's time ("blog"); false with none.