Skip to:

Opened 20 months ago

#8082 new defect (bug)

xprofile_filter_format_field_value_by_type filter not working

Reported by: Venutius Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Extended Profile Keywords:


I've been playing with xProfile fields and I discovered that the above filter which sets the displayed format of the xprofile field is not working. Or rather it comes too soon in the priority for it's changes to have an impact.

If I change line 30 of bp-xprofile-filters from:

add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_format_field_value_by_type', 8, 3 );


add_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_format_field_value_by_type', 100, 3 );

The filter works. You can test this by setting adding a date profile field and setting it to display the elapsed time. It's should change the output to show the 'ago' time, but this does not happen unless you increase the above priority.

I'm not exactly sure exactly what is the right priority for this function, there's a few funtions triggering off this filter

Change History (0)

Note: See TracTickets for help on using tickets.