Guest User

Hide Username in BuddyPress

a guest
Apr 9th, 2013
198
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table class="profile-fields">
  2.  
  3. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  4.  
  5. <?php if ( bp_field_has_data() ) : ?>
  6.  
  7. <?php $data_field = bp_get_the_profile_field_name(); if ( ($data_field == "field_1") && !is_super_admin() && !bp_is_home()) : ?>
  8. <?php echo "";?>
  9. <?php else : ?>
  10.  
  11. <tr<?php bp_field_css_class(); ?>>
  12.  
  13. <td class="label"><?php bp_the_profile_field_name(); ?></td>
  14.  
  15. <td class="data"><?php bp_the_profile_field_value(); ?></td>
  16.  
  17. </tr>
  18.  
  19. <?php endif; ?>
  20. <?php endif; ?>
  21.  
  22. <?php do_action( 'bp_profile_field_item' ); ?>
  23.  
  24. <?php endwhile; ?>
  25.  
  26. </table>
RAW Paste Data