Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../src/Blocks/Domain/Services
File: CreateAccount.php
<?php
[0] Fix | Delete
declare( strict_types=1 );
[1] Fix | Delete
[2] Fix | Delete
namespace Automattic\WooCommerce\Blocks\Domain\Services;
[3] Fix | Delete
[4] Fix | Delete
use Automattic\WooCommerce\Blocks\Domain\Package;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Service class implementing new create account emails used for order processing via the Block Based Checkout.
[8] Fix | Delete
*
[9] Fix | Delete
* @deprecated This class can't be removed due to https://github.com/woocommerce/woocommerce/issues/52311.
[10] Fix | Delete
*/
[11] Fix | Delete
class CreateAccount {
[12] Fix | Delete
/**
[13] Fix | Delete
* Reference to the Package instance
[14] Fix | Delete
*
[15] Fix | Delete
* @var Package
[16] Fix | Delete
*/
[17] Fix | Delete
private $package;
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Constructor.
[21] Fix | Delete
*
[22] Fix | Delete
* @param Package $package An instance of (Woo Blocks) Package.
[23] Fix | Delete
*/
[24] Fix | Delete
public function __construct( Package $package ) {
[25] Fix | Delete
$this->package = $package;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Init - register handlers for WooCommerce core email hooks.
[30] Fix | Delete
*/
[31] Fix | Delete
public function init() {
[32] Fix | Delete
// This method is intentionally left blank.
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Trigger new account email.
[37] Fix | Delete
*
[38] Fix | Delete
* @param int $customer_id The ID of the new customer account.
[39] Fix | Delete
* @param array $new_customer_data Assoc array of data for the new account.
[40] Fix | Delete
*/
[41] Fix | Delete
public function customer_new_account( $customer_id = 0, array $new_customer_data = array() ) {
[42] Fix | Delete
// This method is intentionally left blank.
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function