Rodrigo Primo
37c796487d
Revert "Update WC_Customer_Data_Store to use post_author instead of _customer_user"
...
This reverts commit 482e844f16
.
2018-10-29 11:09:13 -03:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Rodrigo Primo
482e844f16
Update WC_Customer_Data_Store to use post_author instead of _customer_user
2018-05-07 17:54:42 -03:00
Khan M Rashedun-Naby
c174316bf8
Removed redundant else statement and inverted the early return
2018-04-25 22:21:21 +06:00
Rodrigo Primo
37ca7faf2e
Check if there is a customer ID set before calling get_user_by()
2018-03-09 09:34:26 -03:00
Rodrigo Primo
74879abeb3
phpcs fixes in includes/data-stores/class-wc-customer-data-store.php
2018-03-08 16:27:54 -03:00
Rodrigo Primo
2b5103c849
Fix phpcs violations using phpcbf
2018-03-08 14:30:43 -03:00
Arif Widianto
c4a2ed88c3
Change to get_display_name from object
2017-12-02 07:30:39 +07:00
Arif Widianto
793476e05f
Removed, display_name was not part of user meta
2017-11-28 08:36:09 +07:00
Arif Widianto
0b42515c93
Provides edit display name in my-account page ( #17606 )
2017-11-22 15:20:49 +07:00
Mike Jolley
a899b53b57
Unit test fix: Exclude syntax_highlighting
2017-11-16 18:58:09 +00:00
Claudio Sanches
c03520a661
Allow pre query filter return an empty array
2017-08-28 16:23:12 -03:00
Claudio Sanches
d5aae55725
Prevent "Argument #N is not an array" warning when WP_User_Query returns null
2017-08-28 16:15:19 -03:00
Claudio Sanches
f8c18ba899
Introduced pre query filter to WC_Customer_Data_Store::search_customers()
2017-08-28 16:14:13 -03:00
jaydeeprami
55100562b3
Fix typo in '@oaram' to '@param'
2017-07-19 08:14:41 +05:30
Justin Sainton
31d8a4a6d7
Add additional parenthesis.
...
Maybe don't throw fatal errors.
2017-07-03 10:19:57 -07:00
Justin Sainton
29c9fa55d8
Add search_customers() filter
...
Includes each of the parameters passed to the method, as well as a context parameter for each query.
Our specific use case for this is for a custom wholesale ordering system, where we're wanting to limit the search to a specific role - so customizing the arguments here would be really helpful.
Ironically, proposed the same thing three years ago and the committed filter no longer exists: e91ca49b6d
2017-06-30 13:52:24 -07:00
Mike Jolley
6eacecfeb6
Append blog ID on persistent cart user meta
2017-06-08 13:47:23 +01:00
Kelly Dwan
0a265b53a2
Add display_name to customer data store
2017-05-24 13:57:11 -04:00
Mike Jolley
383a318f59
Merge pull request #14949 from aelia-co/Improvement-customer-total-spent-filter
...
New filters for customer total spent
2017-05-23 20:37:58 +01:00
Diego Zanella
89efc65327
Fixed call to woocommerce_customer_get_total_spent_query filter
...
* Variable `$customer` was passed to `$wpdb->get_var()` instead of the filter.
2017-05-23 20:35:21 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Diego Zanella
a6bcc73846
Added $customer to filter woocommerce_customer_get_total_spent_query
2017-05-23 17:06:16 +01:00
Diego Zanella
885cb14029
Merge branch 'master' into Improvement-customer-total-spent-filter
2017-05-23 17:05:08 +01:00
Mike Jolley
351b0e0c67
Support limiting in search_customers
2017-05-16 10:16:57 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Diego Zanella
3f3f2bdc2c
New filters for customer total spent
...
* Added new filters to allow altering the calculation of customer's total spent:
* `woocommerce_customer_get_total_spent`
* `woocommerce_customer_get_total_spent_query`
2017-05-08 19:39:13 +01:00
Mike Jolley
af09548ec0
Add missing shipping_company from internal props in data store
...
Fixes #14768
2017-04-28 13:44:22 +01:00
Jaume
5e53ed70d8
Fix: Creating customer triggers password changed
...
Sending POST /wc/v1/customers or POST /wc/v2/customers with the required args triggers the 'Notice of Password Changed' after creating the customer due to update() calls when the password still has a value.
2017-04-22 20:06:56 +02:00
Mike Jolley
899176bee7
woocommerce_update_customer_args filter
2017-04-11 12:47:53 +01:00
Mike Jolley
243b7a0d3f
Exclude location meta from setters
2017-04-10 12:16:25 +01:00
Claudio Sanches
14572c8d80
Merge pull request #13991 from woocommerce/fix/13928
...
When setting props, exclude deprecated ones
2017-04-06 16:20:34 -03:00
Mike Jolley
2877752e1f
array_flip
2017-04-06 20:18:14 +01:00
Mike Jolley
822412d03c
Make sure we have a prefix for strstr
...
Closes #14032
2017-04-06 14:11:00 +01:00
Mike Jolley
70778abade
When setting props, exclude deprecated ones
...
Fixes #13928
2017-04-05 23:16:45 +01:00
Mike Jolley
7e462b9cca
Data store date handling
2017-03-23 00:10:29 +00:00
Mike Jolley
3b35d95c6a
Use gmdate and GMT in data stores so times are not changed
2017-03-22 12:01:38 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Claudio Sanches
64b45e9909
Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store
2017-03-06 19:03:26 -03:00
Mike Jolley
1d9f71fee5
Wrap read with try catch block
2017-02-23 12:09:39 +00:00
Mike Jolley
2d013eb5be
Handle wp prefix in php
2017-02-01 01:43:52 +01:00
Mike Jolley
90fd0da7d0
Fire actions for updated props
2017-01-24 21:38:02 +00:00
Justin Shreve
63a29dd4db
Add 'locale' to list of customer meta keys, and update expected type for 'object' for gateways, products, and shipping zones to fix some API issues.
2016-12-07 12:23:23 -08:00
Mike Jolley
56396d305e
Fix last name
2016-11-25 21:46:52 +00:00
Mike Jolley
30539b6f5a
Update display name when saving customer
2016-11-25 20:16:19 +00:00
Mike Jolley
1749551021
Customer crud
2016-11-24 15:31:05 +00:00