Skip to:
Content

BuddyPress.org

Opened 4 years ago

Last modified 11 months ago

#8186 new enhancement

xprofile field type display_filter method should provide more data

Reported by: sbrajesh's profile sbrajesh Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 5.0.0
Component: Core Keywords: needs-patch
Cc: sbrajesh

Description

Hi,
I have a custom field type(file) and I am trying to use cloud storage for the files.
In order to do that, I am storing a meta key with the data id(not field id as field ids are not unique per instance of data).

To fetch, I need to filter on the value in my display_filter method. The data provided in this method are only value and field id.

We need either field id & user id to find the profile data or we need the data id.

I checked and I can see that the callback is being used by

xprofile_filter_format_field_value_by_type( $field_value, $field_type = '', $field_id = '' )

This function itself does not have any idea about the context it is being used.

Looking further, It seems 'xprofile_filter_format_field_value_by_type' is being used by
the filter

bp_get_the_profile_field_value

and the function

xprofile_filter_format_field_value_by_field_id()
xprofile_format_profile_field()

Is there anyway to resolve it in upcoming release.

Change History (3)

#1 @espellcaste
18 months ago

  • Milestone changed from Awaiting Review to Up Next

#2 @imath
18 months ago

  • Milestone changed from Up Next to 12.0.0

#3 @imath
11 months ago

  • Keywords needs-patch added
  • Milestone changed from 12.0.0 to Awaiting Contributions

Sorry we were not able to work on this during 12.0, I'd be happy to review a patch about it though :)

Note: See TracTickets for help on using tickets.