Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created September 27, 2018 16:06
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 Pebblo/0e7fc68a447583840df989a6776dc6f9 to your computer and use it in GitHub Desktop.
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.
<?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 );
@Pebblo
Copy link
Author

Pebblo commented Sep 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment