Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCTransactionalEmailPostsGenerator::initialize │ public │ WC 1.0

Deprecated since 1.1.0. It is no longer supported and may be removed in future releases. Use r opens editor; there is no initialization step anymore. No-op, will be removed in a future version instead.

Initialize the email template generator.

Method of the class: WCTransactionalEmailPostsGenerator{}

No Hooks.

Returns

void. Nothing (null).

Usage

$WCTransactionalEmailPostsGenerator = new WCTransactionalEmailPostsGenerator();
$WCTransactionalEmailPostsGenerator->initialize();

Changelog

Deprecated since 11.1.0 Email posts are created lazily when the user opens the editor; there is no initialization step anymore. No-op, will be removed in a future version.

WCTransactionalEmailPostsGenerator::initialize() code WC 11.2.1

public function initialize() {
	wc_deprecated_function( __METHOD__, '11.1.0' );
}