30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Rank Math Role Capabilities

rank-math/get-role-capabilities returns the Rank Math capability matrix: the sixteen capabilities it defines with their labels, and which roles currently hold each one.

It is the diagnosis for an insufficient_capability failure from another Rank Math ability.

At a glance

Abilityrank-math/get-role-capabilities
ToolsetRank Math — toolset/rank-math
GroupRank Math › Modules & Permissions
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Rank Math defines its own capabilities, and an insufficient_capability failure from any ability here is about those rather than about being an administrator. rank-math/get-role-capabilities is the diagnosis.

The capabilities are ordinary WordPress capabilities with a rank_math_ prefix, which means the generic users/add-role-capability and users/remove-role-capability abilities grant and revoke them. There is no special mechanism, and this suite deliberately does not duplicate those writers.

Sixteen separate capabilities is finer-grained than most plugins, and the granularity is the point: a role can be allowed to edit a post’s SEO meta without being allowed to touch the redirection table or the sitemap settings.

It also means a permission failure names something specific, and reading the matrix turns that name into “this role does not have it” rather than a general permissions mystery.

Input

This ability takes no input.

What comes back

NameTypeWhat it is
capabilitiesarrayEach capability with its label and the roles that hold it.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Why can our editors not change redirections?

It resolves to one call:

{
  "ability": "rank-math/get-role-capabilities",
  "parameters": {}
}

Worth knowing

  • Sixteen capabilities, granted and revoked with the generic user abilities.
  • rank_math_* are ordinary WordPress capabilities.
  • The answer to an insufficient_capability failure.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading