@remcob00
11 years, 3 months ago
Thanks guys. bp_xprofile_get_hidden_fields_for_user() was the thing that I needed! This is my code:
<?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(); ?> <?php if(xprofile_get_field_data('field_name') && !in_array(xprofile_get_field_id_from_name('field_name'), $hidden_fields)) : ?> <p><?php echo xprofile_get_field_data ('field_name'); ?></p> <?php endif; ?>