BP_XProfile_Field_Type_WordPress_Textbox::sanitize_for_output( string $value,  $user_id )

Sanitize the user field before displaying it as an attribute.

Parameters Parameters


(string) (Required) The user field value.

Top ↑

Return Return

(string) The sanitized field value.

Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.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

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.