BP_XProfile_Field_Type::display_filter( mixed $field_value, string|int $field_id = '' )

Allow field types to modify the appearance of their values.


Description Description

By default, this is a pass-through method that does nothing. Only override in your own field type if you need to provide custom filtering for output values.


Top ↑

Parameters Parameters

$field_value

(mixed) (Required) Field value.

$field_id

(string|int) (Optional) ID of the field.

Default value: ''


Top ↑

Return Return

(mixed)


Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type.php

	public static function display_filter( $field_value, $field_id = '' ) {
		return $field_value;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Added $field_id parameter.
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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