woocommerce_new_customer_username

woocommerce_new_customer_username

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_new_customer_username') is found 1 times:

  • /includes/wc-user-functions.php line 221
    	 * @param string $email         New customer email address.
    	 * @param array  $new_user_args Array of new user args, maybe including first and last names.
    	 * @param string $suffix        Append string to username to make it unique.
    	 */
    	return apply_filters( 'woocommerce_new_customer_username', $username, $email, $new_user_args, $suffix );
    }
    
    /**
     * Login a customer (set auth cookie and set global user object).
     *
     * @param int $customer_id Customer ID.