add hidden field does’t work
-
Hi,
I added this code to my functions.php, following instructions on your website, but the merge field is not updated once the subscriber is added:
// add hidden field to top bar add_action( 'mctb_before_submit_button', function() { echo '<input type="hidden" name="SIGNUPFORM" id="mce-SIGNUPFORM" value="topbar" />'; }); add_filter( 'mctb_data', function( $vars ) { $vars['SIGNUPFORM'] = ( isset( $_POST['SIGNUPFORM'] ) ) ? sanitize_text_field( $_POST['SIGNUPFORM'] ) : ''; return $vars; });
could you help with this?
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘add hidden field does’t work’ is closed to new replies.