Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCTransactionalEmailPostsGenerator::generate_initial_email_templates
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 initial email templates.
Method of the class: WCTransactionalEmailPostsGenerator{}
No Hooks.
Returns
bool. Always false.
Usage
$WCTransactionalEmailPostsGenerator = new WCTransactionalEmailPostsGenerator(); $WCTransactionalEmailPostsGenerator->generate_initial_email_templates();
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_initial_email_templates() WCTransactionalEmailPostsGenerator::generate initial email templates code WC 11.2.1
public function generate_initial_email_templates() {
wc_deprecated_function( __METHOD__, '11.1.0' );
return false;
}