[wp-trac] [WordPress Trac] #42970: Add a 'rest_nonce_action' filter to the REST API

WordPress Trac noreply at wordpress.org
Sat Dec 23 23:22:12 UTC 2017


#42970: Add a 'rest_nonce_action' filter to the REST API
----------------------------+-----------------------------
 Reporter:  enlightenedpie  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  REST API        |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  rest-api        |
----------------------------+-----------------------------
 In the spirit of fully customizing the REST API, as I'm doing in my
 current application, some features (like the REST prefix) are customizable
 through filters, while the nonce name, or rather the rest nonce 'action',
 is not. 'wp_rest' is a bit generic and could easily have a
 'rest_nonce_name' or 'rest_nonce_action' filter added in wp-includes/rest-
 api.php.

 I believe in this regard that allowing alignment with user-defined
 namespaces and naming conventions would really further the extensibility
 of the WP REST API, especially in cases where pretty much every default
 (including default endpoints) are being disabled or
 overridden/overwritten. Thoughts?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42970>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list