xprofile_sanitize_data_value_before_display( string $value, string $type, int $field_id )

Filters profile field values for whitelisted HTML.

Description

Parameters

$value

(string) (Required) Field value.

$type

(string) (Required) Field type.

$field_id

(int) (Required) Field ID.

Source

File: bp-xprofile/bp-xprofile-filters.php

function xprofile_sanitize_data_value_before_display( $value, $type, $field_id ) {
	return xprofile_filter_kses( $value, null, $field_id );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.3 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.