Wordpress JsonAPI - /wp-json/ was not found on this server

I am using the following plugin Json Rest API. To test the plugin the documentation states that I should just use: $ curl -i http://testpress-maxximus.rhcloud.com/wp-json/ HTTP/1.1 404 Not...

Wordpress REST API search products

Hope that you can help me. I have a website that runs wooccommerce. I am using the woocommerce rest api. Now on another website what I want to do is create a simple search field where I type...

WooCommerce Rest Api: Get the orders by specific date

I want to get the orders by specific date using WooCommerce Rest Api. The Api provides orders method which accept only ID. But I want to get the specific order at specific date. How can I achieve...

WooCommerce REST API Authentication fails when logged in

WooCommerce REST API Authentication is failing when I am logged into Wordpress in the same browser. Log out - everything works Log in - and get this...

Safely disable WP REST API

I am considering to improve security of my Wordpress website, and in doing so have come across WP REST API being enabled by default (since WP 4.4 if I'm not mistaken). What is a safe way to...

Pass String Parameters to WP REST API

I can pass integer values to WP REST API. But, cannot pass non-numeric characters. It gives error. This is what I used... add_action( 'rest_api_init', function () { register_rest_route(...

WP_REST_Response to download a file

Is it possibile to return a document (a generated PDF, a CSV) using the WP_REST_Response in WordPress? So far I've been registering a custom endpoint using register_rest_resource but if I try to...

wordpress rest api Authorization

hi i use this code for upload image in wordpress with api my code : <?php $file = $_FILES["RESULT_FileUpload-6"]["tmp_name"]; $url = 'http://tst.com/wp-json/wp/v2/media/'; $ch =...

Wordpress REST API - send reset password link

I want to create a request from my application. (iOS and Android - Coded with Xamarin). Explaination: The request should trigger the WordPress action=lostpassword. - The user receives an email to...

WooCommerce REST API "woocommerce_rest_cannot_view "

when i paste this link http://localhost/wordpress/wp-json/wc/v2/products?consumer_key=ck_*******************&consumer_secret=cs_******************** it show for me this error...

Why Divi shortcodes don't render in wp-json?

I'm trying to use the the_content filter to process the Divi shortcodes, but the shortcodes are still appearing. Specifically et_pb_section, et_pb_column, et_pb_text if that matters. add_action(...

Wordpress upload multiple image using custom endpoint rest api (ionic as enduser)

I want to upload multiple image to wordpress using ionic(angularjs).With custom endpoint rest api. I tryed using ionic file transfer but its not working.The api endpoint was...

How to reset user password by wordpress rest api

Any one of you know know to send a reset link for lost password by wordpress rest api ? I have been looking into wordpress rest api documentation but I haven't find out anything about it. Maybe...

Wordpress 5.0.3 - "Updating failed" and "Publishing failed". Console log shows a 404 on /blog/wp-json/wp/v2/posts/1177/autosaves?_locale=user

I updated Wordpress to the latest version (5.0.3). Now, any time I try to post I get a red message that says "Publishing failed". If I try to save a draft I get "Updating failed". In console, I'm...

Set user to role equivalent of "No role at the site" using the WordPress REST API

I am able to successfully change the role of the user with the ID of 5 to 'subscriber' from the WordPress REST API using the following: curl --request POST \ --url...

Wordpress minimum load with only REST API functions

I need to run regular updates from external app to wordpress website through REST API. But the performance of the API is awful. I see around the SHORTINIT method, that loads minimal WP but it...

How to expose all the ACF fields to Wordpress REST API in both pages and custom postypes

I want to expose all the ACF fields that belong to a page or custom post type to the WordPress REST API in order to do some API calls through javascript. The final expected result would be all the...

Populate ACF Fields using Wordpress Rest API JS

I'm new working with WordPress and I'm playing around with the Advanced Custom Fields plugin. It seems nice but I'd like to know if it's possible to POST a new object (created using ACF) through...

TypeORM: Cannot read property 'getParameters' of undefined

I'm building rest API using express with typeORM for Mysql based on Wordpress database schema you can check from here. When I try to inner join or left join I get that Cannot read property...

Is there a way to get pending comments/posts from wordpress api?

I am trying to get pending comments/posts form wordpress API. When i type this http://testWeb/wp-json/wp/v2/comments its returning only published items. Is there a way to get pending items? What i...

how can i compress image size before uploading this is my code

how can I compress image size before uploading this is my code I want to compress image size before its uploaded to WordPress site I am using WordPress rest API in my android app how can I...

Display products from Woocommerce in external application

I have a question about integration e.g. Woocommerce with external app. What is the best and safe method to accomplish this goal? Woocommerce has REST API but it might be quite vulnerable and will...

Wordpress JSON API only working when logged in

I seem to be only able to access the wordpress json api when I am logged in in wordpress (no matter which endpoint, even on GET mypage.com/wp-json/). When I remove all cookies or logout and call...

Wordpress Woocommerce - REST API limitation to up to 100 objects

As the documentation of woocommerce REST API (v3) stated, by default the REST API is limited to up to 100 objects to be created, updated or deleted....

Push XML DATA to REST API with PHP/cURL/JSON

I'm somewhat stuck on a problem. I'm attempting to write an app that basically reads and sorts DATA from an online XML file containing customers and recreates those customers in...

How to disable tax being charged on shipping in WooCommerce?

I have configured my Woo-based shop to NOT charge any taxes on shipping: I do have a table for Zero Tax rate configured: however it still does during the checkout: as is apparent in the...

React Native Woocommerce REST API throws error on localhost

I am using the Woocommerce REST API library @woocommerce/woocommerce-rest-api in my React native e-commerce app. I have also tried out the library...

woocommerce_rest_cannot_view with oauth 1.0

I using OAuth 1.0a to authentication my android app as admin to view Woocommercerest API source I using the retrofit library and it works but today I have this problem I/okhttp.OkHttpClient:...

Connection refused from WooCommerce REST API on a Wordpress Docker installation

I installed Wordpress and MySQL with Docker, following this guide and with the official images. Then I also installed the WooCommerce plugin and created an API key to use. I'm trying to query the...

How update acf fileds with rest api Woocommerce

I am trying to update the custom fields (acf) of the Woocommerce product through the REST API: $acf_data = [ "fields" => [ 'demo_url' => 'http://myurl' ...