Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#65349 assigned enhancement

Add Theme Abilities (tracking issue)

Reported by: mmaattiiaass Owned by:
Priority: normal Milestone: Future Release
Component: Abilities API Version: 7.1
Severity: normal Keywords:
Cc: Focuses:

Description

Add Theme Abilities:

core/get-active-theme
Returns information about the currently active theme, optionally filtered to a subset of fields.

core/get-theme-info
Returns information about a specific installed theme looked up by its stylesheet slug, optionally filtered to a subset of fields.

core/get-themes
Returns a list of all installed themes (optionally filtered by active/inactive status) along with the slug of the currently active one.

core/activate-theme
Activates an installed theme by its stylesheet slug and reports the previous and new active stylesheet.

Change History (1)

#1 @gziolo
6 months ago

  • Milestone Awaiting Review → Future Release

Thanks for working on these additions. They look directionally useful and align with the earlier discussion in ​https://github.com/WordPress/ai/issues/40 where this area started to take shape.

Before adding several new abilities, I wonder if we should discuss the right level of granularity. If we introduce many small, similar abilities, selection may become harder for clients and agents. Could some of these be consolidated into fewer abilities with parameters, and can we define criteria for when a separate ability is warranted?

Note: See TracTickets for help on using tickets.