bp_signup_requires_privacy_policy_acceptance()

Determines whether privacy policy acceptance is required for registration.


Return Return

(bool)


Source Source

File: bp-members/bp-members-template.php

function bp_signup_requires_privacy_policy_acceptance() {
	// Bail if we're running a version of WP that doesn't have the Privacy Policy feature.
	if ( bp_is_running_wp( '4.9.6', '<' ) ) {
		return false;
	}

	// Default to true when a published Privacy Policy page exists.
	$privacy_policy_url = get_privacy_policy_url();
	$required           = ! empty( $privacy_policy_url );

	/**
	 * Filters whether privacy policy acceptance is required for registration.
	 *
	 * @since 4.0.0
	 *
	 * @param bool $required Whether privacy policy acceptance is required.
	 */
	return (bool) apply_filters( 'bp_signup_requires_privacy_policy_acceptance', $required );
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.