CheckoutFieldsSchema
11 months ago
Email
1 year ago
CheckoutFields.php
11 months ago
CheckoutFieldsAdmin.php
2 years ago
CheckoutFieldsFrontend.php
11 months ago
CheckoutLink.php
11 months ago
CreateAccount.php
1 year ago
DraftOrders.php
2 months ago
FeatureGating.php
1 year ago
GoogleAnalytics.php
2 years ago
Hydration.php
5 months ago
Notices.php
1 year ago
functions.php
2 years ago
CreateAccount.php
47 lines
| 1 | <?php |
| 2 | declare( strict_types=1 ); |
| 3 | |
| 4 | namespace Automattic\WooCommerce\Blocks\Domain\Services; |
| 5 | |
| 6 | use Automattic\WooCommerce\Blocks\Domain\Package; |
| 7 | |
| 8 | /** |
| 9 | * Service class implementing new create account emails used for order processing via the Block Based Checkout. |
| 10 | * |
| 11 | * @deprecated This class can't be removed due to https://github.com/woocommerce/woocommerce/issues/52311. |
| 12 | */ |
| 13 | class CreateAccount { |
| 14 | /** |
| 15 | * Reference to the Package instance |
| 16 | * |
| 17 | * @var Package |
| 18 | */ |
| 19 | private $package; |
| 20 | |
| 21 | /** |
| 22 | * Constructor. |
| 23 | * |
| 24 | * @param Package $package An instance of (Woo Blocks) Package. |
| 25 | */ |
| 26 | public function __construct( Package $package ) { |
| 27 | $this->package = $package; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Init - register handlers for WooCommerce core email hooks. |
| 32 | */ |
| 33 | public function init() { |
| 34 | // This method is intentionally left blank. |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Trigger new account email. |
| 39 | * |
| 40 | * @param int $customer_id The ID of the new customer account. |
| 41 | * @param array $new_customer_data Assoc array of data for the new account. |
| 42 | */ |
| 43 | public function customer_new_account( $customer_id = 0, array $new_customer_data = array() ) { |
| 44 | // This method is intentionally left blank. |
| 45 | } |
| 46 | } |
| 47 |