AuditHistoryforComments
Returns a history of changes and status updates for comments in WordPress.
View-Specific Information
SELECT
The component uses the WordPress API to process the following filter server-side. Other filters are processed client-side within the component.
- CommentId supports the = operator.
SELECT * FROM AuditHistoryforComments WHERE CommentId = '10'
Note: Events with a status-trash or status-unapproved status do not populate through a simple SELECT. To return values for these events, provide the associated CommentId.
Columns
| Name | Type | References | Description |
| CommentId | Int |
Comments.Id | Specifies the identifier of the comment whose changes are recorded in the audit history. |
| Event | String | The type of action recorded for the comment, such as create, update, or delete.
The allowed values are check-ham, status-approved, status-trash, status-unapproved. | |
| Time | Timestamp | The exact date and time when the action was performed on the comment. | |
| User | String | The user who performed the action recorded in the audit log. |