[buddypress-trac] [BuddyPress Trac] #8082: xprofile_filter_format_field_value_by_type filter not working

buddypress-trac noreply at wordpress.org
Sun Apr 21 12:16:07 UTC 2019


#8082: xprofile_filter_format_field_value_by_type filter not working
------------------------------+-----------------------------
 Reporter:  Venutius          |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Extended Profile  |    Version:
 Severity:  normal            |   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 );
 }}}

 to:

 {{{
 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

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8082>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list