nils-fredrik@maksimer.no
8e18937305
Fix for #7752
...
Use error code from WP_Error when wc_create_new_customer() fails.
2015-03-18 00:20:35 +01:00
Bryce
deb4acd5a2
Return (first) role of user in customer API endpoint
2015-02-07 13:08:48 +07:00
Bryce
1e9349a585
Remove $wpdb and $blog_id
2015-02-04 19:33:25 +07:00
Bryce
d0e0a6be6b
Change so only single role can be set in role param
2015-02-04 19:31:14 +07:00
Bryce
0f927acdd3
Allow people to override roles when querying customers API
...
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley
c814a9fa23
docblock corrections
2015-02-03 14:44:57 +00:00
Mike Jolley
81515fddbe
Incorrect api docblock
2015-02-03 14:17:49 +00:00
Claudio Sanches
ec6039794a
[API] Fixed the datetime format for WC_API_Customers::get_customer_downloads()
2015-01-21 10:38:33 -02:00
Mike Jolley
2c32f6cdd0
Add functions to get money spent/order count for customers and fix in API Closes #7083
2015-01-12 17:09:46 +00:00
Mike Jolley
643892bd33
modify_user_query use 24 hour date format.
...
Closes #7082
2015-01-12 17:09:46 +00:00
Claudio Sanches
678f5e67a0
[API] Refactored the customers endpoint to use the WC_API_Exception class #6138
2015-01-05 16:06:52 -02:00
Claudio Sanches
116e1130ae
[API] Fixed "Undefined index: limit" in customers endpoint
2015-01-05 12:36:50 -02:00
Florian Ludwig
e1039c127f
Reworked code to be Wordpress code style compliant
2014-10-15 19:43:13 +02:00
Florian Ludwig
3a4cc14f62
Fixed intendation
2014-10-15 00:31:56 +02:00
Florian Ludwig
846c24d119
REST API 2.0 Add possibility to get all customers
...
usage similar to products and orders: filter[limit]=-1
2014-10-15 00:24:16 +02:00
shivapoudel
e6f6bcf368
Absolute path fix for REST API v2
2014-09-21 01:09:20 +05:45
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Max Rice
744c3767c3
REST API: ensure consistency in create/edit data formats
...
A client should be able to GET a resource, edit a single item and PUT
it back to the server without having to perform any additional
transformation. This commit ensures all PUT/POST endpoints adhere to
this standard.
2014-08-30 15:50:40 -04:00
Max Rice
47ccd78b21
Allow using meta_value_num with resource orderby
...
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice
bb651761d0
Add orderby filtering to REST API resource endpoints
...
Adds orderby filtering to all endpoints using default WP orderby
parameters.
Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice
323bcbf848
Add order (desc/asc) to REST API customers endpoint
...
Part of #5720
2014-07-28 19:38:21 -04:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
ae50495dfd
Update API functions
2014-05-30 16:34:59 +01:00
claudiosmweb
d2329914a6
created customer api endpoint to get the customer available downloads, closes #4594
2014-05-28 14:06:46 -03:00
Coen Jacobs
3ae4e54b04
Empty return value should be null
2014-05-26 12:51:03 +02:00
Coen Jacobs
cfd8600960
Use regex instead of DOM module to get avatar URL
2014-05-26 12:48:21 +02:00
claudiosmweb
2adacc742a
fixed the status for create new customers via api
2014-03-06 04:28:42 -03:00
claudiosmweb
e6755972b0
fixed the inline documentation
2014-03-05 14:24:47 -03:00
claudiosmweb
344a0d92c6
improved the validation for WC_API_Customers::edit_customer() and WC_API_Customers::delete_customer()
2014-03-04 23:42:36 -03:00
claudiosmweb
f2d8912bc1
fixed coding standards in includes/api/class-wc-api-customers.php
2014-03-04 22:48:54 -03:00
claudiosmweb
3b4b73851b
added missing textdomain
2014-03-04 18:05:55 -03:00
claudiosmweb
41a5b147e9
improved the WP_Error's ids in customers api
2014-03-04 18:05:22 -03:00
claudiosmweb
ee907b0c20
removed sanitize_text_field() function in favor to wc_clean() function in customers api
2014-03-04 02:48:17 -03:00
claudiosmweb
68b8c9f020
improved the customer api creation/edition
2014-03-03 23:01:07 -03:00
claudiosmweb
4204a86022
added method do delete customers via api
2014-03-03 22:16:54 -03:00
claudiosmweb
6c4f82665e
added the woocommerce_api_edit_customer action in WC_API_Customers::edit_customer()
2014-03-03 22:09:50 -03:00
claudiosmweb
906273c20b
added the woocommerce_api_create_customer action in WC_API_Customers::create_customer()
2014-03-03 22:09:05 -03:00
claudiosmweb
f54909f715
added method to edit customer via api
2014-03-03 22:07:28 -03:00
claudiosmweb
5b95346825
fixed the customer creation via api
2014-03-03 21:41:53 -03:00
claudiosmweb
371665cd79
added route to create customers via api
2014-03-03 21:13:44 -03:00
claudiosmweb
584bfda988
added method to create users with the api
2014-03-03 21:04:40 -03:00
Gerhard
a614e79ad4
update @since to 2.2
2014-02-17 19:17:40 +02:00
Gerhard
4fe3dd28fb
Move email lookup to own endpoint customers/email/<email>
2014-02-17 19:13:01 +02:00
Gerhard
5c18fab238
Add back absint to validate function for customers by id endpoint
2014-02-17 16:44:08 +02:00
Gerhard
a7e659b6fa
Review customer/<email> endpoint, move into own function
2014-02-17 16:39:56 +02:00
Gerhard
88425e64cc
Add email lookup to customers endpoint, try at 4845
2014-02-17 15:19:11 +02:00
claudiosmweb
bcf88933c6
fixed docblock for WC_API_Customers::query_customers, closes #4666
2014-02-07 15:39:40 -02:00
Max Rice
f17a52fd3a
Make customer data for orders endpoint consistent for guest orders
...
Simply returning ‘guest’ for the customer property changes the data
type of the response from a dictionary to string which is bad for
clients that should be able to always expect a dictionary. This commit
fixes that by using the same dictionary structure as registered
customer orders, but excluding fields which aren’t applicable. Clients
can determine guest vs. registered customer orders by inspecting the
value of customer ID, which is 0 for guest orders.
2014-01-23 16:38:08 -05:00
Coen Jacobs
c1a439eb99
Formatting functions woocommerce to wc refactor
2013-11-25 14:34:21 +01:00
Max Rice
017e7cee1d
Add permissions for count endpoints
2013-11-23 17:11:16 -05:00