CreateAccount
Service class implementing new create account behaviour for order processing.
Description Description
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/CreateAccount.php
Methods Methods
- __construct — Constructor.
- create_customer_account — Create a new account for a customer (using a new blocks-specific PHP API).
- customer_new_account — Trigger new account email.
- from_order_request — Create a user account for specified request (if necessary).
- init — Init - register handlers for WooCommerce core email hooks.
- is_feature_enabled — Single method for feature gating logic. Used to gate all non-private methods.
- map_create_account_error — Convert an account creation error to an exception.
- should_create_customer_account — Check request options and store (shop) config to determine if a user account should be created as part of order processing.