Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created May 9, 2017 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/12910a43ef450e2c3316176b08c25868 to your computer and use it in GitHub Desktop.
Save joshfeck/12910a43ef450e2c3316176b08c25868 to your computer and use it in GitHub Desktop.
Remove Email Templates from Event Espresso email messages
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action('AHEE__EE_Email_Messenger_main_wrapper_template_head', 'my_remove_email_templates', 10);
function my_remove_email_templates()
{
if (class_exists('Mailtpl'))
{
$mailtpl = Mailtpl::instance();
remove_action('phpmailer_init', array($mailtpl->mailer, 'send_email'), 50);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment