core/rollback-wp-core moves WordPress core down once. But WordPress offers the newer version again at the next update check, and an automatic update can quietly undo the whole thing. A pin is what makes a chosen version hold.
versions/get-core-pin reports whether one is set, which version, and — the useful part — whether the pin is actually having any effect.
At a glance
| Ability | versions/get-core-pin |
| Toolset | WP Downgrade — toolset/wp-downgrade |
| Group | WP Downgrade › Core Pinning |
| Requires | Nothing to read. Reports whether WP Downgrade is active |
| Capability | manage_options and update_core |
| Safety | Read-only |
| Repeatable | Idempotent |
| Ships in | AcrossAI Abilities Manager 0.0.45 and later |
Input
None. Call it with an empty object.
What comes back
| Name | Type | What it is |
|---|---|---|
is_pinned | boolean | Whether a core version pin is set. |
pinned_version | string | The version being held. |
running_version | string | What WordPress is actually running right now — which is often not the pinned version. |
relation | string | Whether the pin is older, newer or the same as what is running. |
pin_is_inert | boolean | Whether the pin currently has no effect. |
package_url | string | The package the pin resolves to. |
custom_url_enabled | boolean | Whether WP Downgrade is set to use a caller-supplied download URL. If it is, this says so loudly. |
wp_downgrade_active | boolean | Whether the host plugin is loaded. |
next_step | string | What to do to make the pin take effect. |
warnings | array | Anything worth knowing before acting on this. |
Example
Ask your assistant:
Is WordPress held on a specific version on this site?
{
"ability": "versions/get-core-pin",
"parameters": {}
}Worth knowing
- A pin and the running version are different things. Setting a pin does not move core; it changes which package the update offer points at.
running_versionis the truth about what is installed. - Reading the pin needs nothing installed. On a site without WP Downgrade this reports no pin and says that installing it is what enables pinning.
custom_url_enabledmatters. WP Downgrade can be configured to resolve the pin through a download URL somebody typed in, and that is reported rather than hidden.- While a pin is set,
core/reinstall-wp-corerefuses — there is no offer for the running version to reinstall, because the pin has rewritten it.
Related abilities
- Set Core Pin — hold core on a chosen version
- Clear Core Pin — restore normal update behaviour
- Get Rollback Status — the same question for plugins and themes
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category