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

Format WordPress Biography for display.

Parameters Parameters


(string) (Required) The field value, as saved in the database.


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

Default value: ''

Top ↑

Return Return

(string) The sanitized WordPress field.

Source Source

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

	public static function display_filter( $field_value, $field_id = '' ) {
		return sanitize_user_field( 'description', $field_value, bp_displayed_user_id(), 'display' );

Top ↑

Changelog Changelog

Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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