OK, i find my answer.
Just ask it here and as dear Charles sayed, they answered me, so fast, the answer is:
By default, WP-API v1 takes priority over v2. If v1 is installed and
activated, then v2 routes are inaccessible.To mitigate this, you’ll need to register either v1 or v2 to a
different base than wp-json. Both have filters to make this more or
less easily possible:
add_filter( 'rest_url_prefix', function() {
return 'wp-api';
});
and because i am not a WordPress guy, so i don’t know where should i add this lines so i get help from this blog and add the lines to the
function.php
of my them.
Related Posts:
- WP-REST API not returning all its endpoints, 404 on documented endpoints
- WP REST API V2 – Modifying responses
- Add Data to Response of WP-JSON Root
- WP – API – OAuth 1.0a Server, How to implement with AngularJS?
- Hiding WordPress REST API v2 endpoints from public viewing
- How do I access the body of a WP API request in a custom route?
- Get post count in wp rest API v2 and get all categories
- Query WP REST API v2 by multiple meta keys
- How do I cache (core) API requests?
- WP REST API only returning partial list of users
- Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
- How to loop through JSON data in wordpress WP REST API
- WP API : date_query parameter
- How to filter or search the posts using postmeta tables custom meta fields with wordpress REST API
- Get the Category Name instead of ID from WP-API
- OAuth signature does not match
- How to upload image to wordpress from external page
- wordpress custom endpoint multiple params
- Can we access the REST request parameters from within the permission_callback to enforce a 401 by returning false?
- Create post with REST API in php with file_get_contents
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- WordPress API returns empty page when page is less than X-WP-TotalPages
- WP Rest API max limit include parameter?
- How to filter users on custom meta fields in WP JSON v2?
- Passing Meta array in wp-rest api
- How to make a WP REST API query with meta_query in WP4.7?
- WP API to fetch all records for /posts, /media, /categories
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Gutenberg Custom Block Getting All Posts
- Inserting custom post meta value using WP-REST API
- Get all tags not just first 10 with wp api 2.0
- How to add WP API and JS featured image attachment
- WP REST API V2 – Add user data to response
- Display post title from WordPress excluding a string via API
- WP_REMOTE_POST Requests are being blocked by API provider [closed]
- WP-API user email change confirmation
- is it possible to filter a rest api endpoint by using a registered rest field?
- WordPress API for search
- Woocommerce api: create product with images – bad request
- Update a post based on results from GET request to another server
- Syntax for REST API to have bold formatted and multiple lines in product description [closed]
- WP Rest get all by post within that category, by category name not by cat ID
- WP API post__not_in is not working
- OAuth1 empty “authentication” in /wp-json
- rest_no_route on custom API endpoint wordpress
- How to edit feature image with XML RPC?
- Are there events pub/sub for external application to subscribe to file/pdf uploads by wordpress admin
- Get a remote post ID via API given URL
- Core function to check if a rest namespace exists
- Get single item from cURL plugin API call inside bash [closed]
- How to change the date and time in REST API for comments?
- How to create WordPress custom end point with multiple parameters?
- Is there a way to download only the Rest API part of WordPress?
- Custom Endpoint API based on attribute gutenberg block
- How to see posts in taxonomy endpoint
- why woocommerce api only do not upload images from local computer? [closed]
- Uploading a media item with the wp-json API to a specific path
- WordPress REST Api get posts by ID
- post values to custom post type which has advanced custom fields
- Creating a WordPress Post via REST API – HTML or Markdown?
- How to add a rest field to post tags?
- How to use Python to create a Post in WordPress?
- update_callback is not working in register_rest_field
- ng-repeat is not returning a list of posts
- WP REST API and Access-Control-Allow-Origin
- How to make an API call to a custom post type but filtering by meta value?
- Cant create or update meta fields using WordPress REST API
- How to Create a Post from localfiles?
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- WordPress REST API – get custom taxonomy category posts
- How to display relations via wordpress Rest API
- Allow REST API Endpoint to specific user and hide from public
- How can I create new CustomPostType record using wp.api.collections?
- Check if user can in javascript
- upload image to wp-api
- register/login api
- WordPress REST API in Integromat: How to overcome “Sorry, you are not allowed to list users / edit this…”
- How do i post data to url with fields?
- 403 error rest_’cookie_invalid_nonce’ on API Request
- Remove unwanted fields from WP API response
- How to add a post’s view count into the WordPress API response
- WordPress API “code”:”rest_no_route” with Custom Route
- Adding Amchart Interface to WordPress API
- Deleting media using the WordPress Rest API
- wordpress api make 2 custom post type with single request
- Update Custom Post Type Metadata Wp Rest API
- Extending the API I created to return category names
- Consume legacy rest api dependent upon WP API plugin
- Should I edit a user meta field with PUT, PATCH, or POST and WP::Editable
- WP API users per page
- How to retreive/set wordpress page html?
- WP-API + JS Backbone client – how to update post meta
- API request forbidden when requesting from same domain
- How can I use React packages with the clasic editor?
- External api call using wordpress
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- Adding Microsoft Teams Incoming Webhook to WordPress, Problem with Rest Route?
- Woocommerce API for calling products by Category ID
- wordpress rest api authentication failed
- How to submit a button automatically after every scheduled hours?