-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
64 lines (40 loc) · 1.96 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
=== SJF WP API Shortcode ===
Contributors: [email protected]
Tags: JSON REST API, JSON REST API Shortcode
Requires at least: 3.4.2
Tested up to: 4.2
Stable tag: 2.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This plugin offers developers a simple block of code for hello-worlding the JSON REST API, and a shortcode to watch it in action: [wp_api].
== Description ==
Activate this plugin and use the shortcode [wp_api] in a post or page. It takes a few different arguments that are documented in the plugin source code.
== Installation ==
This section describes how to install the plugin and get it working.
1. Upload `json-rest-api-shortcode` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Activate this plugin and use the shortcode [wp_api] in a post or page. It takes a few different arguments that are documented in the plugin source code.
== Frequently Asked Questions ==
= Does my blog need the JSON REST API plugin in order for this plugin to work? =
Until the JSON REST API is merged into core, yes.
= If I use this plugin to ping a remote blog, does the remote blog need the JSON REST API? =
Yes.
= If I use this plugin to ping a remote blog, does the remote blog need to allow CORS? =
Yes. One fantastic way to do this is to use this plugin on the remote blog: https://wordpress.org/plugins/wp-cors/
= Do I need to be careful when I use this plugin? Can it send real traffic and execute real database queries, including CRUD? =
Yes.
== Screenshots ==
1. This screen shot shows the result of using the shortcode to fire an API request.
== Changelog ==
= 2.0 =
* Total rewrite for code cleanup and also to support v2 of the WP API.
= 1.0.4 =
* Include auth data in debug output.
= 1.0.3 =
* Fix bug with passing nonce for cookie auth.
= 1.0.2 =
* Refactor duplicate code into methods.
= 1.0.1 =
* Refactor plugin to use WP Ajax API & WP HTTP API.
= 1.0 =
* Initial Release