bp_get_member_profile_data

  • apply_filters( 'bp_get_member_profile_data', $data )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 631
      		// Populate the user if it hasn't been already.
      		if ( empty( $members_template->member->profile_data ) && method_exists( 'BP_XProfile_ProfileData', 'get_all_for_user' ) )
      			$members_template->member->profile_data = BP_XProfile_ProfileData::get_all_for_user( $user_id );
      
      		// Get the field data if there is data to get
      		if ( !empty( $members_template->member->profile_data ) )
      			$data = xprofile_format_profile_field( $members_template->member->profile_data[$field]['field_type'], $members_template->member->profile_data[$field]['field_data'] );
      
      		return apply_filters( 'bp_get_member_profile_data', $data );
      	}
      
      function bp_member_registered() {
      	echo bp_get_member_registered();
      }
      	function bp_get_member_registered() {
      		global $members_template;
      
      		$registered = esc_attr( bp_core_get_last_activity( $members_template->member->user_registered, __( 'registered %s', 'buddypress' ) ) );
      

Comments are closed.