Changeset 763565
- Timestamp:
- 08/28/2013 10:36:41 AM (13 years ago)
- Location:
- jsonpress/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
jsonpress.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jsonpress/trunk/README.md
r763379 r763565 37 37 ## Changelog 38 38 39 = 0.3 = 40 * /json endpoints now works accross site, (previously only on page or post) 41 39 42 = 0.2 = 40 43 * exclude_query now run after result is formatted -
jsonpress/trunk/jsonpress.php
r763379 r763565 3 3 Plugin Name: JSONPress 4 4 Author: Takien 5 Version: 0. 25 Version: 0.3 6 6 Description: JSON API for WordPress 7 7 Author URI: http://takien.com/ … … 17 17 var $plugin_name = 'JSONPress'; 18 18 var $plugin_slug = 'jsonpress'; 19 var $plugin_version = '0. 2';19 var $plugin_version = '0.3'; 20 20 21 21 var $site_domain = ''; … … 94 94 function jsonpress_endpoints_add_endpoint() { 95 95 // register a "json" endpoint to be applied to posts and pages 96 add_rewrite_endpoint( 'json', EP_ PERMALINK | EP_PAGES);96 add_rewrite_endpoint( 'json', EP_ALL ); 97 97 } 98 98 //modify query -
jsonpress/trunk/readme.txt
r763379 r763565 5 5 Requires at least: 3.5.1 6 6 Tested up to: 3.6 7 Stable tag: 0. 27 Stable tag: 0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 29 29 30 30 Examples: 31 31 32 * `example.com/get/wp_list_categories` to displays list categories in JSON format 32 33 * `example.com/get/wp_list_pages` to displays list pages … … 37 38 38 39 == Other notes == 39 * `/json/` Rewrite endpoints may be not work at this time. You can use sub domain or query `?json=1` instead40 * Use subdomain API is recommended to ensure all links/permalinks are rewritten to API URL. 40 41 41 42 == Installation == … … 66 67 == Changelog == 67 68 69 = 0.3 = 70 * /json endpoints now works accross site, (previously only on page or post) 71 68 72 = 0.2 = 69 73 * exclude_query now run after result is formatted
Note: See TracChangeset
for help on using the changeset viewer.