Add off period is a WordPress ability from LatePoint — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Add off period
WriteCreate a new off/blocked period so an agent, or the whole business, stops accepting bookings for a date range.
Requires the LatePoint plugin on WordPress 6.9+ (the WordPress Abilities API is only available from 6.9 onward). All abilities also require the site's 'latepoint_abilities_api' master toggle to be enabled; write abilities additionally require the 'latepoint_abilities_api_edit' setting, and destructive abilities additionally require the 'latepoint_abilities_api_delete' setting. Each ability further requires the current user to hold the matching LatePoint capability (e.g. 'booking__view', 'customer__edit'), and some abilities also verify the user is allowed to act on that specific record.
What it does
This ability creates a new LatePoint off period, which blocks bookings during a specified start and end date. You give it a label for the period and the date range, and can optionally scope it to a single agent by ID — if no agent_id is supplied, the period isn't tied to a specific agent. On success it saves the record and returns the newly created off period, including the database ID that was assigned. If the underlying save fails, it returns an error instead of a partial or empty result.
See it in action
You ask your AI assistant
"Block out bookings for agent 12 from 2026-08-01 to 2026-08-05 and label it 'Summer Break'."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Label for the off period. |
| start_date | string | Yes | Start date of the off period (Y-m-d). |
| end_date | string | Yes | End date of the off period (Y-m-d). |
| agent_id | integer | No | Agent ID to scope the off period to. Omit to apply it business-wide. |
Returns
The newly created off period as an object with id, name, start_date, end_date, and agent_id (or a WP_Error if the period could not be saved).
Permission
The current user must have LatePoint's 'agent__edit' capability, and both the 'latepoint_abilities_api' and 'latepoint_abilities_api_edit' settings must be enabled.
More LatePoint abilities
Approve booking
Approve a pending booking in one step.
Cancel booking
Cancel a booking while keeping its record intact.
Change booking status
Set a booking to any valid status — approved, pending, cancelled, no_show, or completed.
Change invoice status
Update the payment status of an existing invoice, such as marking it paid or partially paid.
Change order status
Change the status of an order to open, cancelled, or completed.
Check slot availability
Check whether a given date/time slot for a service and optional agent is free of conflicting approved bookings.