Articles of plugin json api

How to replace or display the special characters from JSON API plugin

I started using the JSON API plugin. It works good ! But the problem i am facing is, If i enter any text containing special characters through CMS The output is not same as the given text. Why this is happening? Example: It’s a good app (Input) The output looks like It ' s a […]

How to handle shortcodes when using the JSON API

I’m wrangling a little logic problem: I’m making a single page WP theme which uses the JSON API for the content and Mustache style templates for the presentation… However, shortcodes? What would be the best way to handle these? For example: JSON result->template->DOM injection->trigger hijack for gallery/slideshow/whatever the shortcode is? The above method feels a […]

WP-API restfull JSON and post meta?

OK I’m using this plugin: to turn my site into a rest full API and it’s working great.. Then I’m using ths plugin to add custom post meta: Toolset Types – Custom Post Types, Custom Fields and Taxonomies My problem is i can’t seem to query the url endpoint to return my my post […]

how to get nonce using json api

I try to open this url in my browser or calling from my frontend application: i keep getting the response {“status”:”error”,”error”:”Include ‘controller’ and ‘method’ vars in your request.”} what is wrong, I want to be able to create a custom post type with custom fields in the end but using json api I need […]

How to Securely and remotely Create new user in wordpress using Rest API

I am trying to create users in wordpress Version 4.9.1, remotely using the wordpress API. This is my PHP code below: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_PORT => “8080”, CURLOPT_URL => “http://localhost:8080/my_site/wp-json/wp/v2/users/”, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => “”, CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => “POST”, CURLOPT_POSTFIELDS => “——WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent- Disposition: form-data; […]

WordPress JSON API Extend to Create Users

I have the JSON API Plugin installed on my wordpress blog and it works like a charm. However there is one functionality that i really need. A method called create_user which should take parameters like name, email and password and create new user on the wordpress installation if everything goes correct. Can someone please help […]

Authenticated request to WP REST API V2 returning 403 error on /users/me

I am using WP REST API Version 2.0-beta7 together with WP OAuth Server version 3.1.91 After authenticating with the User Credentials grant type, a request to /wp-json/wp/v2/users?access_token=[ACCESS_TOKEN] returns data about all users, including their capabilities. This is private data so the access_token obtained during the authenciation flow is valid. However, using the same access_token and […]

Sharing templates with the JSON API?

Is there any way to share ‘templates‘ between JS and WordPress? For instance, this sort of modest seat-of-the-pants templating feels ok: var AJAXSuccessFunc = function(data){ // calling this on ajax.success var title =; var content =; var string = ‘<h1>’ + title + ‘</h1>’ + content; targetDiv.html(string).fadeIn(); } But given that content might […]

Add external js file to footer with id

I know how to add custom/external js but i dont know how to pass js id also. i am using it as: wp_register_script( ‘validation’, ‘’, array( ‘jquery’ ) ); wp_enqueue_script( ‘validation’ ); but I need output in footer like: <script type=”text/javascript” id=”3ff00a469474bbe71a9218a7f0377518″ src=”″></script> Note: ID 3ff00a469474bbe71a9218a7f0377518 most show in output

How to get all events from 'All in one Events calender' plugin in JSON format?

I am using All in one Events Calendar plugin to add the events. It works fine in CMS. I would like to display the events data in mobile version. for this i used JSON-API for obtaining web-services in json format. To obtain all events , I dint find any plugin which will full-fill my requirement. […]