Get Core Pin

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

Abilityversions/get-core-pin
ToolsetWP Downgrade — toolset/wp-downgrade
GroupWP Downgrade › Core Pinning
RequiresNothing to read. Reports whether WP Downgrade is active
Capabilitymanage_options and update_core
SafetyRead-only
RepeatableIdempotent
Ships inAcrossAI Abilities Manager 0.0.45 and later

Input

None. Call it with an empty object.

What comes back

NameTypeWhat it is
is_pinnedbooleanWhether a core version pin is set.
pinned_versionstringThe version being held.
running_versionstringWhat WordPress is actually running right now — which is often not the pinned version.
relationstringWhether the pin is older, newer or the same as what is running.
pin_is_inertbooleanWhether the pin currently has no effect.
package_urlstringThe package the pin resolves to.
custom_url_enabledbooleanWhether WP Downgrade is set to use a caller-supplied download URL. If it is, this says so loudly.
wp_downgrade_activebooleanWhether the host plugin is loaded.
next_stepstringWhat to do to make the pin take effect.
warningsarrayAnything 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_version is 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_enabled matters. 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-core refuses — there is no offer for the running version to reinstall, because the pin has rewritten it.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading