[buddypress-trac] [BuddyPress Trac] #7866: Privacy: Privacy policy integration into registration process

buddypress-trac noreply at wordpress.org
Sun Jun 24 18:53:53 UTC 2018

#7866: Privacy: Privacy policy integration into registration process
 Reporter:  boonebgorges             |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.0
Component:  Core                     |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |

Comment (by boonebgorges):

 Here's a drop-in that will enable support in BP Legacy. I don't see an
 obvious way around the inline style, but suggestions welcome :)


 add_filter( 'bp_signup_requires_privacy_policy_acceptance',
 '__return_true' );

 add_action( 'bp_before_registration_submit_buttons', function() {
         <div class="privacy-policy-accept" style="clear:both;">
                 <?php do_action( 'bp_signup_privacy_policy_errors' ); ?>

                 <label for="signup-privacy-policy-accept">
                         <input type="hidden" name="signup-privacy-policy-
 check" value="1" />

                         <?php /* translators: link to Privacy Policy */ ?>
                         <input type="checkbox" name="signup-privacy-
 policy-accept" id="signup-privacy-policy-accept" required /> <?php printf(
 esc_html__( 'I have read and agree to this site\'s %s.', 'buddypress' ),
 sprintf( '<a href="%s">%s</a>', esc_url( get_privacy_policy_url() ),
 esc_html__( 'Privacy Policy', 'buddypress' ) ) ); ?>

 } );


 I'm on the fence about whether to include in Legacy. There are likely many
 sites that have implemented their own such box, and adding one
 automatically would create duplicate headaches for them. On the other
 hand, a far larger number of sites would benefit from the automatic
 addition. I'd welcome others' thoughts.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7866#comment:15>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list