Module — 3 operations

Comments

The moderation queue: list by status, approve, hold, spam or trash, and reply beneath a comment.

Nothing extra to install. This module runs on core WordPress alone.

Cue 2 — first light

Before you call anything here

Note 1

A reply is authored by the acting WordPress user and posted approved. There is no anonymous or impersonated comment path.

Note 2

Everything here asks for moderate_comments — the same permission the site’s own moderation screen asks for.

Reads — 1

What it can tell you

A read still asks WordPress for a capability against the object. There is no anonymous read anywhere in the surface.

comment-list

content-read

Lists comments by status, post, or search term, newest first

needs moderate_comments

Read
Writes — 2

What it can change

Every one of these is previewed before it runs, snapshotted before it changes anything, and verified afterwards by reading the site back. The chips are the policies the operation itself declares.

comment-status-set

content-write

Approves, holds, spams, or trashes one comment

needs moderate_comments

medium risk rollback supported
comment-reply

content-write

Posts an approved reply beneath one comment, authored by the acting user

needs moderate_comments

medium risk rollback supported
Cue 5 — day

Keep reading