xprofile_filter_format_field_value_by_field_id( mixed $field_value, int $field_id )
Apply display_filter() filters as defined by the BP_XProfile_Field_Type classes, when fetched by xprofile_get_field_data().
Description
Parameters
- $field_value
-
(Required) Field value.
- $field_id
-
(Required) Field type.
Return
(string)
Source
File: bp-xprofile/bp-xprofile-filters.php
function xprofile_filter_format_field_value_by_field_id( $field_value, $field_id ) { $field = xprofile_get_field( $field_id ); return xprofile_filter_format_field_value_by_type( $field_value, $field->type, $field_id ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.