wp_list_comments
Retrieve WordPress comments with filters for status (approve, hold, spam, trash, all), post ID, or search terms to manage and review comments efficiently.
Instructions
List comments with optional filtering by status (approve, hold, spam, trash, all), post ID, and search.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_list_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| search | No | Search in comment content or author | |
| status | No | Filter by status: approve, hold, spam, trash, all (default: all) | |
| post_id | No | Filter by post ID | |
| per_page | No | Items per page (default: 20) |