Claudio Sanches
af59ab4a2a
Exit after redirect
2019-10-09 12:35:24 +02:00
Rodrigo Primo
f21723f17a
Merge pull request #23402 from bekarice/tweak/update-paying-customer
...
Tweak: update paying customer information on payment complete
2019-07-12 10:15:21 -03:00
Beka Rice
3c2e3cc9aa
Only set paying customer prop when required
2019-07-10 18:36:43 -04:00
Gerhard Potgieter
49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
...
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Claudio Sanches
8b04f8d6cc
Merge pull request #23150 from woocommerce/fix/23135
...
Made WooCommerce roles translatable
2019-07-08 18:39:33 -03:00
Claudio Sanches
fb19ffe48f
Avoid infinity loop caused by PHP warning
2019-07-08 18:38:03 -03:00
Claudio Sanches
04c598be09
Revert sanitization
2019-05-09 17:28:19 -03:00
Claudio Sanches
caf68b1405
Sets $new_user_args as array by default
2019-05-09 17:08:15 -03:00
Claudio Sanches
96c65d1a4d
Uses "." instead of empty spaces to join words and avoid illegal username
2019-05-09 17:04:48 -03:00
Claudio Sanches
fb8af18eb4
Sanitize only one time
2019-05-09 17:04:27 -03:00
Claudio Sanches
b8d86ccce3
Introduced new woocommerce_new_customer_username filter
2019-05-09 17:02:47 -03:00
Claudio Sanches
20cd0152e8
Improve woocommerce_generated_customer_username filter
2019-05-09 17:01:30 -03:00
Claudio Sanches
c2836c5e75
Try prevent errors caused by illegal logins
2019-05-09 16:56:47 -03:00
Beka Rice
0e1a926721
Fire wc_paying_customer for completed orders, too
2019-04-29 13:06:32 -04:00
Claudio Sanches
59f63f1b22
Return WP_Error messages from wp_insert_user()
2019-04-23 18:52:22 -03:00
Beka Rice
84d03d3bf9
Tweak: update paying customer information on payment complete
2019-04-19 14:21:17 -04:00
Mike Jolley
ad49085571
Append random number to reduce recusion
2019-03-27 12:22:15 +00:00
Mike Jolley
a2576943a2
compare string
2019-03-26 14:08:14 +00:00
Mike Jolley
8d3978e26b
wc_translate_user_roles
2019-03-26 13:56:06 +00:00
Mike Jolley
2b8f8e38d1
wc_create_new_customer_username function
2019-03-26 11:09:37 +00:00
Claudio Sanches
79847ccb93
Fixed coding standards
2019-02-20 16:30:46 -03:00
Claudio Sanches
8b8498a37a
Included extra argument into wc_create_new_customer
...
Allows passing extra arguments to wp_insert_user() function
2019-02-20 16:18:43 -03:00
Mike Jolley
cab45fafb3
Merge pull request #22650 from woocommerce/update/20995
...
Registration success notices
2019-02-08 13:04:36 +00:00
Mike Jolley
00b48febac
Merge branch 'update/versioned-transients-alt'
2019-02-06 13:18:50 +00:00
Mike Jolley
eed91070b1
Allow notice to persist after customer ID change
2019-02-04 15:48:59 +00:00
Mike Jolley
6a89a76c11
Merge 17796
2019-01-23 16:39:21 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Mike Jolley
eabc30be5e
wc_customer_bought_product - move version within transient
2019-01-21 12:38:40 +00:00
Jeremy Pry
7cc3d098ea
Use proper return value for wc_customer_has_capability() docblock
2018-11-20 08:50:46 -05:00
Rodrigo Primo
a2c18145fc
Revert "Set post_author to 0 on all orders that belong to a deleted customer"
...
This reverts commit f725dc17af
.
2018-10-29 11:16:07 -03:00
Rodrigo Primo
f109008e0d
Revert "Update wc_customer_bought_product() and customers report to use post_author instead of _customer_user"
...
This reverts commit b97f2749d6
.
2018-10-29 11:15:22 -03:00
Rodrigo Primo
7c50892089
Revert "Pass user_id via $wpdb->prepare()"
...
This reverts commit 77add46705
.
2018-10-29 11:07:20 -03:00
Jory Hogeveen
481903d915
No need to continue parsing for shop manager if target user is an administrator
2018-10-16 14:11:36 +02:00
Jory Hogeveen
991ae6e7f2
Check super admin status before modifying editable roles
2018-10-15 23:53:29 +02:00
Jory Hogeveen
00e942d0b7
Check super admin status before mapping caps
2018-10-15 23:52:47 +02:00
Jory Hogeveen
54036f8f38
Codestyle
2018-10-15 17:38:13 +02:00
Jory Hogeveen
e5f934d0a9
Codestyle
2018-10-15 17:21:04 +02:00
Jory Hogeveen
b85c142d97
Stop checking shop_manager role if the user also is an administrator
2018-10-15 17:15:53 +02:00
Jory Hogeveen
dfbe5174ef
Stop using `current_user_can` for validation roles.
...
Fixes #21568
2018-10-15 16:48:16 +02:00
claudiulodro
5f2b915f18
Add filter for ease of extensions
2018-10-11 13:31:30 -07:00
claudiulodro
7ea4e7b1b5
Prevent role changing
2018-10-11 13:31:30 -07:00
claudiulodro
d6144a769e
Restrict shop managers to editing customers
2018-10-11 13:31:30 -07:00
Claudiu Lodromanean
0cd54b67c7
Merge pull request #20606 from woocommerce/refactor/order-again
...
Refactor "order again"
2018-06-26 12:10:55 -07:00
Mike Jolley
5ad0e12602
Store meta after login so we know when cart needs to merge
2018-06-22 12:39:21 +01:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
Claudio Marangon
e3447635ae
Conform returned error messages
...
The <strong>Error:</strong> should be removed because:
- the other errors in this function don't provide it either
- the process_registration() function in class-wc-form-handler.php also adds this string so it's added twice
2018-06-12 15:48:59 +02:00
Rodrigo Primo
77add46705
Pass user_id via $wpdb->prepare()
2018-06-11 11:04:19 -03:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03:00
TheDramatist
93e7419b17
Simplified wc_review_is_from_verified_owner ( #20393 )
...
* Simplified wc_review_is_from_verified_owner
* wc_review_is_from_verified_owner simplified
2018-06-06 12:16:43 +01:00
TheDramatist
090b7c89f4
wc_meta_update_last_update_time cleanning ( #20382 )
2018-06-05 13:31:05 +01:00