Get Dashboard Stats is a WordPress ability from Cart Abandonment Recovery for WooCommerce — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get Dashboard Stats

Read-only

Pull aggregated cart abandonment, recovery, and lost-order stats for a date range.

Requires the Cart Abandonment Recovery for WooCommerce plugin (which itself requires WooCommerce active) on a WordPress core with the Abilities API available — each ability's registration is guarded by a function_exists('wp_register_ability') check. Every ability also requires the current user to have the 'manage_woocommerce' capability.

What it does

This ability returns aggregated cart abandonment metrics for a chosen date range: recoverable, recovered, and lost order counts, recoverable and recovered revenue, and a computed recovery rate (the percentage of tracked orders that were recovered). It defaults to the last 7 days when no dates are given. The underlying execute_callback pulls the figures via the plugin's own report helper for three order types (abandoned, completed/recovered, and lost), so the numbers match what the plugin's own dashboard shows. This gives an AI assistant a fast way to summarize how much revenue is at risk and how well recovery emails are performing without opening the WordPress admin.

See it in action

You ask your AI assistant

"How much revenue have we recovered from abandoned carts in the last 30 days, and what's our recovery rate?"

Inputs

Name Type Required Description
start_date string No Start date in YYYY-MM-DD format (defaults to 7 days ago).
end_date string No End date in YYYY-MM-DD format (defaults to today).

Returns

An object with recoverable_orders, recovered_orders, lost_orders, recoverable_revenue, recovered_revenue, a computed recovery_rate percentage, and the resolved period (start/end dates).

Permission

The current user must have the 'manage_woocommerce' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.