Created
September 27, 2018 16:06
-
-
Save Pebblo/0e7fc68a447583840df989a6776dc6f9 to your computer and use it in GitHub Desktop.
Example of how to change the 'having problems receiving emails form' to use the co organisation email field.
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 now include the opening PHP tag if you already have one | |
//Changes the 'To' field of the 'having problems recieveing emails' form. | |
function tw_ee_send_notification_to_admin__to_organization_email( $event_author_email, $registration ) { | |
return EE_Registry::instance()->CFG->organization->get_pretty( 'email' ); | |
} | |
add_filter( 'FHEE__EED_WP_Users_SPCO__send_notification_to_admin__to', 'tw_ee_send_notification_to_admin__to_organization_email', 10, 2 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: https://eventespresso.com/topic/plain-text-emails/