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

Allow field types to modify the appearance of their values.

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.

Parameters

$field_value

(mixed) (Required) Field value.

$field_id

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

Default value: ''

Return

(mixed)

Source

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

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

Changelog

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.