[wp-trac] [WordPress Trac] #64098: Introduce Abilities API

WordPress Trac noreply at wordpress.org
Wed Oct 22 07:05:39 UTC 2025


#64098: Introduce Abilities API
--------------------------------------------------+---------------------
 Reporter:  gziolo                                |       Owner:  gziolo
     Type:  feature request                       |      Status:  closed
 Priority:  normal                                |   Milestone:  6.9
Component:  General                               |     Version:  trunk
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion has-unit-tests  |     Focuses:
--------------------------------------------------+---------------------

Comment (by gziolo):

 In [changeset:"61045" 61045]:
 {{{
 #!CommitTicketReference repository="" revision="61045"
 Abilities API: Add Ability Categories REST API controller

 Introduces a new REST API endpoint at `wp-abilities/v1/categories` to
 expose
 ability categories through the WordPress REST API.

 The new `WP_REST_Abilities_V1_Categories_Controller` provides:

 - GET `/wp-abilities/v1/categories` - Lists all ability categories with
 pagination
 - GET `/wp-abilities/v1/categories/{slug}` - Retrieves a single category
 by slug

 Both endpoints require the `read` capability and return category data
 including
 slug, label, description, and metadata. The collection endpoint supports
 pagination
 with `page` and `per_page` parameters (default: 50, max: 100).

 Developed in https://github.com/WordPress/wordpress-develop/pull/10380.

 Follow-up [61032].

 Props gziolo, jason_the_adams, timothyblynjacobs.
 Fixes #64098.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64098#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list