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