Skip to content

Draft read-only plugin and theme inventory abilities - #30

Draft
euvoor wants to merge 2 commits into
WordPress:mainfrom
euvoor:feat/read-only-inventory
Draft

euvoor wants to merge 2 commits into
WordPress:mainfrom
euvoor:feat/read-only-inventory

Conversation

@euvoor

@euvoor euvoor commented Nov 19, 2026 •

Copy link
Copy Markdown

Related to #17 and #18.

This draft adds two read-only inventory queries for the current site. Both use the core-experimental/ namespace introduced in #33.

  • core-experimental/plugins-query returns each visible plugin’s Core REST identifier, name, version, and activation status. Callers can filter by exact identifier and status, including network-active on multisite.
  • core-experimental/themes-query returns the stylesheet, template, name, version, and status. Callers can request the active theme by status or exact stylesheet. Listing other themes uses Core’s collection permissions.

Both queries use the Core REST controllers to check what the caller can see. The total counts only visible entries that match the filters.

I’d welcome feedback on the fields and filter names before adding more metadata.

Validation

All six inventory tests passed on WordPress 7.1.5 and 7.2 RC2 in both single-site and multisite mode. Each single-site run made 77 assertions and each multisite run made 80. The tests also check that the old wp/ names aren’t registered.

Upstream CI for ff64d14 covers the full stable and trunk PHPUnit suites, coding standards, static analysis, manifest validation, and the coreify round trip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant