WC_Email_Customer_Reset_Password::__construct
Constructor.
Method of the class: WC_Email_Customer_Reset_Password{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Email_Customer_Reset_Password = new WC_Email_Customer_Reset_Password(); $WC_Email_Customer_Reset_Password->__construct();
WC_Email_Customer_Reset_Password::__construct() WC Email Customer Reset Password:: construct code WC 10.7.0
public function __construct() {
$this->id = 'customer_reset_password';
$this->customer_email = true;
$this->title = __( 'Reset password', 'woocommerce' );
$this->description = __( 'Send an email to customers notifying them that their password has been reset', 'woocommerce' );
$this->template_html = 'emails/customer-reset-password.php';
$this->template_plain = 'emails/plain/customer-reset-password.php';
$this->email_group = 'accounts';
// Trigger.
add_action( 'woocommerce_reset_password_notification', array( $this, 'trigger' ), 10, 2 );
// Call parent constructor.
parent::__construct();
// Must be after parent's constructor which sets `block_email_editor_enabled` property.
if ( $this->block_email_editor_enabled ) {
$this->title = __( 'Account password reset', 'woocommerce' );
$this->description = __( 'Notifies customers when their password has been reset.', 'woocommerce' );
}
}