How do terms of use in register form?

The default items in the registration form are password and email.

I want to add a checkbox and a link to the privacy policy page.

My idea is that when a user wants to register, they enter their password and email, then check the checkbox after accessing the privacy policy.

(Users can check the checkbox without accessing the privacy policy, but they can’t submit the form without checking the checkbox.)

Do I need to write this in functions.php?

How do I implement it?

Hi,

If you mean Registration Terms Page, this checkbox can be added by specifying the page in HivePress > Settings > Users > Registration Terms Page.

Hope it helps.

Thank you!

I can became do it.

Can I add question?

I want to make two Terms Page link and checkbox.

Can I add one more ?

Hi,

Please check this topic Add a second "Terms and Conditions" checkbox on booking form

Thank you for your help!

I become it.

But I wrote this code.

add_filter(
    'hivepress/v1/forms/user_register',
    function( $form ) {

        // Create a new _terms field by copying the first _terms field
        $new_terms = $form['fields']['_terms'];
        $new_terms['label'] = 'New Terms 1'; // Setting new_label

        // Add new _terms field
        $form['fields']['_new_terms_1'] = $new_terms;

        return $form;
    },
    1000
);

Both term links lead to the same page.
I want each link to lead to a different page.

What code should I add?

Hi,

Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work https://fvrr.co/32e7LvY

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.