Commit Graph

102 Commits

Author SHA1 Message Date
Claudio Sanches 4d9203b841 Soft deprecated webhook deliveries REST API endpoints 2017-11-30 16:20:20 -02:00
Shiva Poudel 4eaeff1729 Tweak - Fix IPN validation for PayPal as its notify URL has different case 2017-11-20 07:52:15 +05:45
Mike Jolley 9f059e17a9 Add helper function instead of calling method, and restore old method for bw compat 2017-11-08 15:07:00 +00:00
Gerhard Potgieter 7b9fb6c0cb Change nocache_headers hook firing (#17540)
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.

* Create do_not_cache_page helper function and call that instead of nocache_headers

* Must add checks to prevent caching on certain pages as well

* Nothing to return
2017-11-08 14:27:30 +00:00
Claudio Sanches cb5122cc07 Removed legacy WordPress REST API files 2017-10-20 15:52:57 -02:00
Claudio Sanches 44319e20f7 [REST API] Fixed file name convention 2017-03-23 17:48:37 -03:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Claudio Sanches 58d90a2ee8 Added legacy classes 2017-02-17 00:27:40 -02:00
Claudio Sanches d4ce22cb76 Created WC_REST_CRUD_Controller 2017-02-16 20:27:07 -02:00
Mike Jolley dd3d46ccaf Merge branch 'master' into includes
# Conflicts:
#	includes/admin/class-wc-admin-duplicate-product.php
2017-02-16 16:28:46 +00:00
Mike Jolley bbf8e750ce Tidy up includes 2017-02-16 11:46:01 +00:00
Claudio Sanches d2818be2ba Order refunds v1 and v2 2017-02-16 01:27:44 -02:00
Claudio Sanches 5d87a28407 Restored shipping zones base controller 2017-02-09 18:46:57 -02:00
Claudio Sanches 88d2875514 Restored REST API v1 2017-02-09 18:40:35 -02:00
Claudio Sanches 4352484ed7 REST API v2 2017-02-09 15:06:13 -02:00
Vishal Kakadiya 06f206c49b Changed file name from 'class-' to 'abstract-' (#12159)
* Changed file name from 'class' to 'abstract'

* Changed file name from 'class' to 'abstract'

* Changed file name from 'class-' to 'abstract-'
2016-10-24 21:49:22 -02:00
Justin Shreve c1d7111240 Implement separate variation endpoints for managing a product's variations. Also adds tests. 2016-09-29 14:44:14 -07:00
Justin Shreve 49676d1781 Hook up email settings to the API
Add support for option_key when registering settings, so we can also manage settings that are stored in the array of a single option.
2016-09-08 15:20:15 -07:00
Justin Shreve fd952e8efa Payment Gateways API 2016-09-05 14:49:29 -07:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos d430dabb37 Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 2016-08-27 07:04:18 +03:00
Justin Shreve 3ceb189118 Add GET /shipping_methods and GET /shipping_methods/METHOD_ID
Also adds tests.
2016-08-25 11:48:17 -07:00
Claudio Sanches 525b11a2a2 Defined a priority for the REST API init method 2016-08-16 17:44:32 -03:00
Claudio Sanches 49b7dd6dfa Removed custom hooks introduced in #11668 2016-08-16 17:43:09 -03:00
Justin Shreve 7def54c528 Add a new hook and filter for loading new REST API files. 2016-08-10 06:19:06 -07:00
Justin Shreve 9dbd365be8 First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool. 2016-08-09 09:51:30 -07:00
Justin Shreve e761edd8d9 Make sure to load abstract-wc-rest-shipping-zones-controller.php 2016-08-02 10:10:47 -07:00
Jeff Stieler 510229e13d Add initial controller for Shipping Zone Methods endpoint, with schema definition. 2016-08-02 10:10:47 -07:00
Jeff Stieler 56ef442624 Move common methods to an abstract base shipping zones controller class. 2016-08-02 10:10:47 -07:00
Jeff Stieler 7a142af215 Initial Shipping Zone Locations endpoint controller, with schema. 2016-08-02 10:10:47 -07:00
Jeff Stieler 0de6f42b51 Create GET route for shipping zones, handling case where shipping calculations are disabled. 2016-08-02 10:10:47 -07:00
Justin Shreve 72f01d9c0a Merge pull request #11548 from woothemes/system-status-api
Add system status info REST API endpoint
2016-08-02 10:08:45 -07:00
Mike Jolley 1f664e7c5e Check for class not version 2016-08-01 11:42:03 +01:00
Justin Shreve 041b5745b4 Finish system status tests 2016-07-27 12:19:14 -07:00
Justin Shreve e255602d91 System status controller 2016-07-27 10:29:10 -07:00
Mike Jolley 66c61eebc8 Define full path for includes
Closes #11087
2016-07-27 11:58:43 +01:00
Justin Shreve 1d4615aee3 Fix setting class case. REST should be uppercase. 2016-07-26 14:33:55 -07:00
Justin Shreve 838c27438e Merge branch 'settings-api' of https://github.com/woothemes/woocommerce into settings-api 2016-07-26 11:11:09 -07:00
Justin Shreve 02915e6056 Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API. 2016-07-26 11:08:29 -07:00
Jeff Stieler 1a95055303 Call register_legacy_settings() directly instead of adding another hook. 2016-07-26 10:24:15 -07:00
Jeff Stieler 383b5b2944 Move legacy setting API registration hooks into main WC_API class. 2016-07-26 10:24:15 -07:00
Jeff Stieler d77373227a Remove now defunct WC_REST_Settings_API_Controller class. 2016-07-26 10:24:15 -07:00
Jeff Stieler 2fcb15d9cf Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller. 2016-07-26 10:24:15 -07:00
Jeff Stieler f168f356bc Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller. 2016-07-26 10:24:15 -07:00
Claudio Sanches 7b78a6d9a7 Small tweaks to make it follow the REST API standards 2016-07-26 10:24:15 -07:00
Justin Shreve fa27f277a1 Split settings and groups controllers into two separate files. 2016-07-26 10:24:15 -07:00
Justin Shreve a9bb988873 Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core. 2016-07-26 10:24:15 -07:00
Jeff Stieler 35f0d77e7d Call register_legacy_settings() directly instead of adding another hook. 2016-07-19 10:41:22 -07:00
Jeff Stieler 18c8d12eaa Move legacy setting API registration hooks into main WC_API class. 2016-07-19 10:41:22 -07:00
Jeff Stieler d8fec21147 Remove now defunct WC_REST_Settings_API_Controller class. 2016-07-19 10:41:22 -07:00