• Resolved wooq123

    (@wooq123)


    Hi, as mentioned in a previous post I’ve used the functions.php code that you guys provided to add a “name” field to the top bar. However, when the name is inputted, it does not transfer to the mailchimp list. Is there a fix for this?

    add_action( ‘mctb_before_submit_button’, function() {
    echo ‘<input type=”text” name=”NAME” placeholder=”Your name” />’;
    });

    add_filter( ‘mctb_data’, function( $vars ) {
    $vars[‘NAME’] = ( isset( $_POST[‘NAME’] ) ) ? sanitize_text_field( $_POST[‘NAME’] ) : ”;
    return $vars;
    });

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Name” Field Not Transferring to MailChimp List’ is closed to new replies.