Guide

Datasets Abilities

WordPress Abilities API tools for dataset analytics and staff download URLs.

Ability index

AbilityPermissionSide effects
prc-datasets/get-analyticsedit_post on datasetRead-only
prc-datasets/get-download-urlpublish_posts + edit_post on datasetRead-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

Input

Typed options, defaults, and constraints in one scannable reference.
2 fields
post_id number required
Dataset post ID.
site_id number
Multisite blog ID via platform AI utils.

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.

Was this helpful?