Skip to main content
The MainWP WordPress SEO Extension registers two read-only abilities in the mainwp-wordpress-seo category. Both use the mainwp/ namespace on your MainWP Dashboard. Use them to audit the Yoast SEO settings templates saved in the extension, check which sites a template was applied to, and review a fixed set of key settings without opening the Settings Templates tab.

What You’ll Learn

  • List saved Yoast SEO settings templates with pagination
  • Read one template’s recorded site applications and settings summary
  • Understand which settings are returned and which text is masked

Prerequisites

  • WordPress 6.9 or later on the MainWP Dashboard site
  • MainWP Dashboard with Abilities API support; use version 6.2 or later for the input_json examples below
  • An Abilities-enabled release of the WordPress SEO Extension, active on MainWP Dashboard
  • At least one settings template imported in MainWP > Add-ons > Content Operations > WordPress SEO > Settings Templates
  • An authenticated user with manage_options and access to the WordPress SEO Extension
Team Control restrictions apply. The extension permission is checked on every call. Site entries appear only for sites the user can access. Use an Application Password or the authentication methods in the Abilities API overview. The examples use an Application Password.

Available Abilities

Discover the abilities and their schemas:
Both abilities are marked readonly: true, destructive: false, and idempotent: true. They read data stored on MainWP Dashboard only. They do not apply templates, sync sites, or contact Child sites.

List Templates

Ability: mainwp/list-wordpress-seo-templates-v1
Method: GET
Both parameters are optional. Extra input properties are rejected. Example response:

Get a Template

Ability: mainwp/get-wordpress-seo-template-v1
Method: GET
The only input is the required id, a positive integer template ID from the list ability.
Example response:
The response includes the list fields plus:
Application times record when MainWP Dashboard applied the template to a site. They do not confirm the site’s current Yoast SEO settings, which may have changed since.

Settings summary

The summary never returns the full imported settings. It includes only these settings when they are present in the template: All values are returned as strings exactly as stored in the template, such as "1" or "on". Yoast variables such as %%sitename%% stay readable. settings_summary is an empty array when the template contains none of these keys. It is null when the stored settings cannot be read, for example when they are malformed or larger than 1 MB.

Masked Values

Both abilities mask sensitive-looking text in every returned string, including titles, descriptions, site names, and setting values. Masked text is replaced with [redacted]. This applies to:
  • Credentials, such as passwords, tokens, API keys, and Bearer or Basic authorization values
  • URLs, domain names, and file paths
  • Email addresses
Webmaster verification codes and other settings outside the summary list are never returned. Open the template in the extension to view its full content.

Error Handling

Standard authentication, schema, and method errors follow the Abilities API error reference. WordPress SEO can also return: