bp_field_has_public_data

Whether or not the XProfile field has public data to display.

Description

bp_field_has_public_data(); 

Usage

  1. if ( !function_exists( 'bp_field_has_public_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-xprofile/bp-xprofile-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_field_has_public_data(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-xprofile/bp-xprofile-template.php  
  1. function bp_field_has_public_data() { 
  2. global $profile_template; 
  3.  
  4. /** 
  5. * Filters whether or not the XProfile field has public data to display. 
  6. * @since 2.8.0 
  7. * @param bool $value Whether or not there is public data to display. 
  8. * @param object $profile_template Profile template object. 
  9. * @param string $value Profile field being displayed. 
  10. * @param string $value Profile field ID being displayed. 
  11. */ 
  12. return apply_filters( 'bp_field_has_public_data', ( ! empty( $profile_template->field_has_data ) ), $profile_template, $profile_template->field, $profile_template->field->id );