BP_XProfile_Field_Type_WordPress_Biography::sanitize_for_output( string $value, integer $user_id )

Sanitize the user field before displaying it as an attribute.


Parameters Parameters

$value

(string) (Required) The user field value.

$user_id

(integer) (Required) The user ID.


Top ↑

Return Return

(string) The sanitized field value.


Source Source

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

	public function sanitize_for_output( $value, $user_id = 0 ) {
		if ( ! $user_id ) {
			$user_id = bp_displayed_user_id();
		}

		return sanitize_user_field( $this->wp_user_key, $value, $user_id, 'attribute' );
	}


Top ↑

Changelog 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.