Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCTransactionalEmailPostsGenerator::generate_email_templates │ public │ WC 1.0

Deprecated since 11.1.0 Email posts are no longer bulk-generated; file templates are the rendering source until an email is customized and saved. No-op, will be removed in a future version.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Generate email templates.

Method of the class: WCTransactionalEmailPostsGenerator{}

No Hooks.

Returns

bool. Always false.

Usage

$WCTransactionalEmailPostsGenerator = new WCTransactionalEmailPostsGenerator();
$WCTransactionalEmailPostsGenerator->generate_email_templates( $templates_to_generate );
$templates_to_generate(array) (required)
The email types to generate.

Changelog

Deprecated since 11.1.0 Email posts are no longer bulk-generated; file templates are the rendering source until an email is customized and saved. No-op, will be removed in a future version.

WCTransactionalEmailPostsGenerator::generate_email_templates() code WC 11.2.1

public function generate_email_templates( $templates_to_generate ) {
	unset( $templates_to_generate );
	wc_deprecated_function( __METHOD__, '11.1.0' );
	return false;
}