Restored filter `woocommerce_checkout_customer_id` during checkout validation
This commit is contained in:
parent
6afc566de4
commit
19aa807da6
|
@ -819,7 +819,7 @@ class WC_Checkout {
|
|||
* @throws Exception
|
||||
*/
|
||||
protected function process_customer( $data ) {
|
||||
$customer_id = get_current_user_id();
|
||||
$customer_id = apply_filters( 'woocommerce_checkout_customer_id', get_current_user_id() );
|
||||
|
||||
if ( ! is_user_logged_in() && ( $this->is_registration_required() || ! empty( $data['createaccount'] ) ) ) {
|
||||
$username = ! empty( $data['account_username'] ) ? $data['account_username'] : '';
|
||||
|
|
Loading…
Reference in New Issue