Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Yiggory,

    While I do not generally recommend doing this, it can be done by adding the following code to your theme its functions.php file.

    add_filter( 'mc4wp_integration_buddypress_checkbox_attributes', function( $attributes ) {
       $attributes['required'] = 'required';
       return $attributes;
    });

    Please consider enabling the “implicit” feature instead, as this will hide the checkbox and subscribe everyone using the BuddyPress registration form without showing them a checkbox of which they can’t change the value.

    Also, make sure you’re complying with the laws in your country as not every country allows subscribing people like this.

    Good luck!

    Thread Starter gameslopedy

    (@yiggory)

    Thanks for helping us but we are wanting this field required with our terms and conditions approval tick box as it must be required to be ticked on registration:

    For example: [ redacted ]

    Could you please give us another code which will show the tickbox to users and force them to checked.??

    • This reply was modified 8 years, 4 months ago by Jan Dembowski.
    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Yiggory,

    The code I mentioned actually does show the checkbox and makes it required, as requested. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to force Buddypress Registration Tick Box Ticked?’ is closed to new replies.