support: REST routes and abilities

Read from the source of support at v1.1.1. Entries marked wp-kit are declared once as an operation and exposed on REST, WP-CLI and as an Ability.

REST routes

GET · wp-kit

/wp-json/mmwp/v1/report

Namespace mmwp/v1, route /report

Site report

Returns the redacted site report. Nothing is sent anywhere.

Permission: Set by the resource default (not overridden on this operation).

Arguments of /wp-json/mmwp/v1/report
ArgumentTypeRequiredDefaultDescription
format string 'text' Output format. One of text, json.

Registered in src/Kit/Support_Resource.php#L1(opens in a new tab).

POST · wp-kit

/wp-json/mmwp/v1/send

Namespace mmwp/v1, route /send

Send a support request

Sends one email to the plugin's support address. The site report is included only with include_report.

Permission: Set by the resource default (not overridden on this operation).

Arguments of /wp-json/mmwp/v1/send
ArgumentTypeRequiredDefaultDescription
plugin string Yes Slug of a registered plugin.
subject string Subject.
message string Yes Message.
reply_to string Reply-To address (default: current user).
name string Sender name.
include_report boolean false Include the site report (default false).
include_log boolean false Include the last debug.log lines (default false).
dry_run boolean false Print the email instead of sending it.

Registered in src/Kit/Support_Resource.php#L1(opens in a new tab).

Abilities

Registered with the WordPress Abilities API (wp_register_ability()).