Comment Command¶
Manage WordPress comments.
Quick Start¶
Subcommands¶
list¶
List comments with filters.
Options:
| Option | Description |
|---|---|
--post-id INTEGER |
Filter by post ID |
--status TEXT |
Filter by status (approve, pending, spam, trash) |
--server TEXT |
Server name from config |
get¶
Get comment details.
create¶
Create a new comment.
Options:
| Option | Description |
|---|---|
--author TEXT |
Comment author name |
--email TEXT |
Author email |
update¶
Update an existing comment.
Options:
| Option | Description |
|---|---|
--content TEXT |
New comment content |
delete¶
Delete a comment.
approve¶
Approve a comment.
unapprove¶
Unapprove a comment.
Examples¶
# List all comments
praisonaiwp comment list
# List comments for specific post
praisonaiwp comment list --post-id 123
# List pending comments
praisonaiwp comment list --status pending
# Get comment details
praisonaiwp comment get 456
# Create comment
praisonaiwp comment create 123 "Great post!" --author "John"
# Approve/unapprove comments
praisonaiwp comment approve 456
praisonaiwp comment unapprove 456
# Delete comment
praisonaiwp comment delete 456