xprofile_sanitize_data_value_before_display_from_get_field_data( string $value, int $field_id )

Filters profile field values for allowed HTML, when coming from xprofile_get_field_data().


Parameters Parameters

$value

(string) (Required) Field value.

$field_id

(int) (Required) Field ID.


Source Source

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

function xprofile_sanitize_data_value_before_display_from_get_field_data( $value, $field_id ) {
	return xprofile_filter_kses( $value, $field_id );
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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