• Resolved Craig

    (@spedadvocate)


    I want to write user meta and will also have subscribers_only: true and skip_mail: on
    Nothing I am trying seems to work:

    add_action('wpcf7_before_send_mail', 'my_saved_meta');
    function my_saved_meta() 
    {
        $submission = WPCF7_Submission::get_instance();
        if ( $submission ) 
        {
            $posted_data = $submission->get_posted_data();
        }
    	global $wpdb;  	 // latest attempt
    	$user_id = get_current_user_id(); 	 
    update_user_meta( $user_id, 'have_swd', $posted_data['swd-radio'] );
    }

    Where am I going very wrong … ?

Viewing 1 replies (of 1 total)
  • Thread Starter Craig

    (@spedadvocate)

    Never mind … fixed it and don’t see how to remove my post.
    GREAT plugin … but you know that!

Viewing 1 replies (of 1 total)

The topic ‘Writing user meta’ is closed to new replies.