query-enquiries Query EnquiriesReturns a paginated list of enquiries with author, status, parent form, date, and notes. Supports filtering by status, form, author, and category. Requires install_plugins. Pass site_id to act on another site you belong to.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | No | Filter by status slug: new_enq, prog_enq, pending_enq, res_enq, clos_enq. Omit for all statuses. One of: new_enq, prog_enq, pending_enq, res_enq, clos_enq. | |
form_id | integer | No | Filter by parent contact form post ID. | |
author_id | integer | No | Filter by enquirer user ID. | |
category | string | No | Filter by enquiry category slug. | |
per_page | integer | No | Number of results per page. Default 20, max 100. | |
page | integer | No | Page number. Default 1. | |
search | string | No | Search string matched against enquiry title and content. | |
site_id | integer | No | Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site. |