Created
May 9, 2017 17:44
-
-
Save joshfeck/12910a43ef450e2c3316176b08c25868 to your computer and use it in GitHub Desktop.
Remove Email Templates from Event Espresso email messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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