bp_has_profile

  • apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 175
      		'fetch_field_data'  => true,
      		'exclude_groups'    => false, // Comma-separated list of profile field group IDs to exclude
      		'exclude_fields'    => false  // Comma-separated list of profile field IDs to exclude
      	);
      
      	$r = wp_parse_args( $args, $defaults );
      	extract( $r, EXTR_SKIP );
      
      	$profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields, $hide_empty_fields );
      	return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template );
      }
      
      function bp_profile_groups() {
      	global $profile_template;
      	return $profile_template->profile_groups();
      }
      
      function bp_the_profile_group() {
      	global $profile_template;
      	return $profile_template->the_profile_group();
      

Comments are closed.