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

WordPress Trac noreply at wordpress.org
Thu May 21 08:31:17 UTC 2026


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

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62398" 62398]:
 {{{
 #!CommitTicketReference repository="" revision="62398"
 Abilities API: Add filters for input and output validation

 Introduce the `wp_ability_validate_input` and `wp_ability_validate_output`
 filters so developers can layer custom validation on top of the default
 JSON
 Schema checks, either augmenting an existing WP_Error or rejecting
 otherwise valid data.

 Props priethor, gziolo, westonruter, enej.
 Fixes #64311.
 }}}

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


More information about the wp-trac mailing list