We recently had a support request for a conflict between Event Espresso 3 and WP-Email in that once a user entered their registration details (First Name, Last Name, Email) on the event registration form WP-Email would hi-jack the redirect and display the Email form based on the fact that query_vars contained 'email'.
### Function: Load WP-EMail
add_action('template_redirect', 'wp_email', 5);
function wp_email() {
global $wp_query;
if( array_key_exists( 'email' , $wp_query->query_vars) ) {
include(WP_PLUGIN_DIR.'/wp-email/email-standalone.php');
exit();
} elseif( array_key_exists( 'emailpopup' , $wp_query->query_vars ) ) {
include(WP_PLUGIN_DIR.'/wp-email/email-popup.php');
exit();
}
}
function ee_wp_mail_fix()
{
global $this_is_a_reg_page;
if($this_is_a_reg_page) {
remove_action('template_redirect', 'wp_email', 5);
}
}
add_action( 'template_redirect', 'ee_wp_mail_fix', 4 );
To remove the redirect from our registration page, however it might be a good idea to add filter to allow users to set exception pages for this redirect as I'm sure there are times when users will not want any form submitting email to redirect to WP-EMail.