wp_tec_trash_event tool reference for The Events Calendar
Writemoves an event to trash, or permanently deletes it when force deletion is requested.
Description
moves an event to trash, or permanently deletes it when force deletion is requested.
What it is for
- Safely removing outdated events.
- Handling accidental publications with auditable rollback support.
Example use case
retiring an event.
Sample prompt
Move event ID 2466 to trash because the campaign has ended.
Sample response
{
"tool": "wp_tec_trash_event",
"status": "ok",
"updated": true
}
What does wp_tec_trash_event do?
moves an event to trash, or permanently deletes it when force deletion is requested.
Does wp_tec_trash_event modify site data?
Yes. It can create, update, activate, deactivate, or delete data depending on arguments.
Which capability is commonly required?
It usually runs with controls compatible with edit_posts and the active MCP profile.
How should wp_tec_trash_event be used safely?
Require confirmation, test in staging first, and verify rollback coverage.
Which plugin is required?
The Events Calendar must be installed and active in the target WordPress environment.
