Skip to content

Instantly share code, notes, and snippets.

@melvinstanly
Last active February 13, 2019 07:17
Show Gist options
  • Save melvinstanly/c6533b2b83463ef1a4ac2956523c0048 to your computer and use it in GitHub Desktop.
Save melvinstanly/c6533b2b83463ef1a4ac2956523c0048 to your computer and use it in GitHub Desktop.
WooCommerce Email Related Codes
<?php
$mailer = WC()->mailer();
$mails = $mailer->get_emails();
$emails = wc()->mailer()->emails; // Contains all WooCommerce email classes with details
?>
1. User password will be shown in email only if the checkbox is ticked for [Generate password on My account page] from
woocommerce -> accounts & privacy
2. Order placed email to customer will be
* Order Processing Email - If payment is completed
* On hold Email - If payment is not completed (cod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment