Are you sure that a _doing_it_wrong notice isn’t being issued? You won’t see the notice visibly output on the page because that would break the JSON response. But if you look in the headers of the response you should see a X-WP-DoingItWrong header.
It should also appear if you use a plugin like this to record developer notices: https://wordpress.org/plugins/log-deprecated-notices/
Related Posts:
- WP REST API: check if user is logged in
- Can’t GET draft posts via REST API from headless frontend
- Full page NGINX (or Cloudflare) caching and WordPress nonces
- WordPress REST API, Expired Nonce from Cache results in 403 forbidden
- Passing a borrowed nonce through Postman fails
- WP REST API – Nonce passes wp_verify_nonce even after logout
- Filter DELETE REST API calls
- Rest API: wp_verify_nonce() fails despite receiving correct nonce value
- Backbone with custom rest endpoints
- Log in user using WordPress REST API
- wp_nonce vs jwt
- Register rest field authentication with REST API
- Rest API nonce is being cached
- Nonce validation in REST API
- Is the WordPress REST API installed and enabled in a vanilla WordPress 4.7 installation?
- Nonce retrieved from the REST API is invalid and different from nonce generated in wp_localize_script
- check the requesting url
- WP REST API Require Password for GET Endpoint
- Getting user meta data from WP REST API
- WP REST API V2 – Retrieve sub page by full slug (URL/Path)
- Verify nonce in REST API?
- Increase per_page limit in REST API
- How to use the WP REST API for new user registration (sign up form)?
- Can I authenticate with both WooCommerce consumer key and JWT?
- Can’t send emails through REST API
- How to login to WordPress site using basic authentication HTTP headers?
- Adding post fields in wp-json/wp/v2/search
- How can I set status=’publish’ for all featured images?
- WordPress Gutenberg get page template value when post updated?
- WP Rest API convert permalink to post ID for fetch
- How to update custom meta fields with rest api?
- Rest API invalid nonce with Backbone Client
- Formating content rendered from wordpress REST API as JSON and not HTML
- How to filter users on custom meta fields in WP JSON v2?
- How can I return an image from a custom REST API endpoint?
- Gutenberg Custom Block Getting All Posts
- Check Password Strength using WordPress API
- Send request to WordPress REST API
- Request to REST endpoint works fine in browser and curl, but fails from WP_REST_Request
- WP REST api.wordpress.org discovery
- Rest API in integration tests – filtering by slug not working?
- How to hook into “register_rest_field” to modify the behavior of a custom field?
- WP REST API GET Requests require authentication
- Get all PDF files from page with WordPress API
- current_user_can(‘administrator’) returns false when I’m logged in
- What’s the “?P” register rest api construct, what is for and where to find official docs?
- How to add / embed an author into REST data from a custom post type?
- How to enable the view of revisions of post in WordPress Api for custom post type?
- Problem on creating custom endpoints for REST
- New user signup via REST API
- Ho to style post content for WordPress API?
- REST API: best place to set current user for JWT auth?
- WP REST API can’t set post tags
- WP API post__not_in is not working
- WordPress REST API V2: how to get list of all posts?
- Getting 401 from ajax using an application password
- How to connect android app with WordPress website?
- WordPress REST API calls that depend on the WordPress User
- Sidebar endpoint using WordPress API
- How to get data from /wp-json/wp/v2/users/me
- Get custom posts in gutenberg block
- WordPress REST API parameters are not affecting a response
- Getting 401 (access denied) when trying to use the REST API
- Update meta_value in wp_postmeta using API
- WordPress plugin with CORS
- WordPress REST API not working on localhost
- REST API – Allow /users endpoint depending on a custom capability
- “Error: cURL error 60: SSL certificate problem: certificate has expired” when create product in WooCommerce via REST API
- 403 Error When Fetching Data from the Settings Rest Route for Non-Admin Users
- How to use WordPress REST api to login a user?
- REST API post times out when content is too large
- Create User with Profile and Cover Images using REST API
- Wrong encoding of dynamic block properties problem when loggen in as editor
- What’s the right way to validate JSON data coming from an AJAX POST request?
- Remove unwanted fields from WP API response
- Need wp rest api for featured video post
- WordPress and React how to integrate? [closed]
- WordPress Update Role using API Cross site
- Rest API. Post content
- REST api header link href
- Error rest_post_invalid_page_number trying to call Rest API
- WordPress & React Native
- update meta data (like view counter) by rest-api
- Rest API hook ‘rest_insert_post’ not returning request object
- How Can I keep password protected posts in the json requests but not on frontend queries?
- How to change WordPress api v2
- REST API Integration without user account?
- WP_REST_Request::get_json_params() Parsing null as Zero
- WP REST API with Basic Auth at target website
- API request forbidden when requesting from same domain
- Custom WP Rest API Endpoints from JSON Schema
- Script tag in string in wordpress rest api body to create post
- Securing REST API wp-json/wp/v2/users endpoint
- Customizer Changeset, Sidebar and Rest API Custom Endpoints
- Rest API is running, but /wp-json/wp/v2/ shows only old dates
- Rest Api Error ‘ Error: {‘code’: ‘rest_no_route’, ‘message’: ‘No route was found matching the URL and request method.’, ‘data’: {‘status’: 404}}@ [closed]
- Isn’t rest_do_request() filtered by pre_get_posts() filter?
- WordPress Rest Api search limited to 10 results
- REST API Schema: how to allows for both empty string or email string
- Field fetched through REST API contains ASCII version of special characters