WP-API / docs-v2

Documentation for version 2 of the API
http://v2.wp-api.org
58 stars 76 forks source link

JSONP #150

Closed alien315 closed 7 years ago

alien315 commented 8 years ago

How can I make a JSONP call to the API?

Thanks

rmccue commented 8 years ago

The API supports a _jsonp parameter that can take a function name as a parameter (allowed characters are alphanumeric, _ and .). This is one of a few "meta-parameters" supported by the API, indicated by the leading _.

We should document this better. :)

kadamwhite commented 7 years ago

@rmccue How would you imagine improving this documentation, beyond what we have in the https://developer.wordpress.org/rest-api/using-the-rest-api/global-parameters/ page?

rmccue commented 7 years ago

IIRC at the time, that page didn't exist (in any format), so should be good now 👍