[wp-trac] [WordPress Trac] #64311: Abilities API: add filters for input and output validation

WordPress Trac noreply at wordpress.org
Mon Mar 16 13:03:46 UTC 2026


#64311: Abilities API: add filters for input and output validation
--------------------------------------+-----------------------
 Reporter:  priethor                  |       Owner:  priethor
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  7.1
Component:  AI                        |     Version:  6.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by gziolo):

 * milestone:  Future Release => 7.1


Comment:

 Worth noting that similar extensibility was explored earlier in
 https://github.com/WordPress/abilities-api/pull/37, which proposed
 `ability_input_schema` and `ability_output_schema` filters. However, the
 filters proposed here are more powerful — they operate on the validation
 result rather than the schema itself. Schema-level filtering can already
 happen at registration time, whereas these hooks give developers control
 over the validation logic, which is the actual constraint point for
 supporting newer JSON Schema features.

 That same PR also proposed `ability_permission_result` and
 `ability_execute_result` filters. It might be worth considering whether
 those should be part of the parallel effort as well, to provide a complete
 set of extensibility points across the ability lifecycle.

 I'd be happy to see this proposal included in WordPress 7.1.

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


More information about the wp-trac mailing list