[wp-trac] [WordPress Trac] #51748: Allow customization of permission_callback errors

WordPress Trac noreply at wordpress.org
Tue Nov 10 14:16:30 UTC 2020


#51748: Allow customization of permission_callback errors
-------------------------+------------------------------
 Reporter:  plucmtl      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------------------

Comment (by plucmtl):

 An easy resolution would be to pass the returned data from
 error_to_response in a filter that we can then use to customize the
 output!

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


More information about the wp-trac mailing list