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().
Parameters Parameters
- $field_value
-
(mixed) (Required) Field value.
- $field_id
-
(int) (Required) Field type.
Return Return
(string)
Source 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, null, false ); return xprofile_filter_format_field_value_by_type( $field_value, $field->type, $field_id ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |