Commit 7ef2874d authored by KR Moorhouse's avatar KR Moorhouse

Added option to save email address for later opt-out.

parent e4db8624
......@@ -138,6 +138,7 @@ final class NF_Tracking
if ( isset ( $_REQUEST[ 'send_email' ] ) ) {
$send_email = absint( $_REQUEST[ 'send_email' ] );
$user_email = $_REQUEST[ 'user_email' ];
add_option( 'ninja_forms_optin_email', $user_email, '', 'no' );
} else {
$send_email = 0;
$user_email = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment