WordPress.org

Ready to get started?Download WordPress

Forums

BP Profile Privacy
[resolved] [Plugin: BuddyPress Profile Privacy] And the privacy of profile loop? (3 posts)

  1. Tiago
    Member
    Posted 2 years ago #

    Hi, I loved this plugin, excellent work.
    In my buddypress' profile header, I put this code to "call" a field:

    <?php if ( $data = bp_get_profile_field_data( 'field=MYFIELD' ) ) : ?>

    But if in the "Profile Edit" I put to only friends can see, why is showing for all? Can you help me to not show??

    Thanks!!

    http://wordpress.org/extend/plugins/buddypress-profile-privacy/

  2. nfocom
    Member
    Posted 2 years ago #

    Hi, will this work with WordPress 3.4.1 and Buddypress 1.6? Update?

    Thank you.

  3. @modemlooper
    Member
    Plugin Author

    Posted 1 year ago #

    The header is not hidden. You can wrap code with these two if statements. Did not test this:

    <?php
    if ( bp_profile_privacy_is_set()) :
      if ( bp_displayed_user_is_friend() ) : 
    
       endif;
      else :
         bp_get_profile_field_data( 'field=MYFIELD' ) ;
     endif;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic