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.


Top ↑

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 );
}


Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.