Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2018 06:20:34 PM (8 years ago)
Author:
boonebgorges
Message:

Add privacy policy acceptance checkbox to registration process.

When a published Privacy Policy exists on the site, a checkbox appears
just above the submit button on the registration process, which must be
checked in order to proceed with registration.

For maximum compatibility with existing sites, this change is currently
limited to Nouveau.

See #7866.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r11766 r12178  
    24112411
    24122412/**
     2413 * Determines whether privacy policy acceptance is required for registration.
     2414 *
     2415 * @since 4.0.0
     2416 *
     2417 * @return bool
     2418 */
     2419function bp_signup_requires_privacy_policy_acceptance() {
     2420        // Default to true when a published Privacy Policy page exists.
     2421        $privacy_policy_url = get_privacy_policy_url();
     2422        $required           = ! empty( $privacy_policy_url );
     2423
     2424        /**
     2425         * Filters whether privacy policy acceptance is required for registration.
     2426         *
     2427         * @since 4.0.0
     2428         *
     2429         * @param bool $required Whether privacy policy acceptance is required.
     2430         */
     2431        return (bool) apply_filters( 'bp_signup_requires_privacy_policy_acceptance', $required );
     2432}
     2433
     2434/**
    24132435 * Output the current signup step.
    24142436 *
Note: See TracChangeset for help on using the changeset viewer.