MC4WP Newsletter Checkbox
-
Hey I tried to make the mw4wp_check required with the given code from previous thread:
/** * By default, Contact Form 7 disables HTML5 validation so we can not use the default <code>required</code> attribute. * * This code uses CF7 logic to ensure that the subscribe checkbox is checked. */ add_filter( 'wpcf7_acceptance', function( $yes ) { if( ! $yes ) { return false; } return ! empty( $_POST['_mc4wp_subscribe_contact-form-7'] ); });
But somehow when either I use [mc4wp_checkbox] or [acceptance mc4wp_checkbox] this doesn’t work. The [mc4wp_checkbox] isn’t required and the form still being pushed without Opt-In. The [acceptance mc4wp_checkbox] is required but doesn’t trigger the mc4wp_checkbox functionality. What exactly am I doing wrong?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘MC4WP Newsletter Checkbox’ is closed to new replies.