Get dashboard stats 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 →Get dashboard stats
Read-onlyGet key dashboard metrics — bookings, revenue, customers, and pending bookings — for the current month or a custom 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 returns four aggregate statistics for use on a dashboard: the number of bookings and total revenue for a given period, plus the overall customer count and the overall number of bookings still in pending status. You can optionally scope the period with date_from and date_to (both in Y-m-d format); if omitted, it defaults to the first and last day of the current calendar month. Only the bookings_count and revenue figures are scoped to the requested date range — customers_count and pending_count reflect the site's totals regardless of period. This gives an AI assistant a fast, single-call snapshot of business health without needing to run separate queries for each metric.
See it in action
You ask your AI assistant
"Give me this month's booking stats — how many bookings, how much revenue, and how many pending bookings do I have?"
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| date_from | string | No | Period start (Y-m-d). Defaults to first day of current month. |
| date_to | string | No | Period end (Y-m-d). Defaults to last day of current month. |
Returns
An object with bookings_count (integer), revenue (number), customers_count (integer), and pending_count (integer). bookings_count and revenue are scoped to the given date range; customers_count and pending_count are site-wide totals not scoped to the date range.
Permission
The current user must have LatePoint's 'booking__view' capability, and the site's 'latepoint_abilities_api' Abilities API setting must be enabled.
More LatePoint abilities
Add off period
Create a new off/blocked period so an agent, or the whole business, stops accepting bookings for a date range.
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.