WordPress Abilities API tools for dataset analytics and staff download URLs.
Ability index
| Ability | Permission | Side effects |
|---|---|---|
prc-datasets/get-analytics | edit_post on dataset | Read-only |
prc-datasets/get-download-url | publish_posts + edit_post on dataset | Read-only; does not increment counters |
Category: datasets
Meta: show_in_rest: true, MCP public tools, readonly / idempotent
Source: includes/class-ability.php, includes/class-ability-categories.php
prc-datasets/get-analytics
Reference
2 fields
Input
Typed options, defaults, and constraints in one scannable reference.
-
post_idnumber required -
Dataset post ID.
-
site_idnumber -
Multisite blog ID via platform AI utils.
No fields match this filter.
Returns download totals and yearly/monthly log (plus related analytics fields from the ability output schema).
prc-datasets/get-download-url
Same post_id / site_id input. Returns { post_id, title, file_url, attachment_id } without logging a download or stamping _download_unavailable.
If the plugin is inactive on the target site, abilities return plugin_inactive_on_site.