BP_XProfile_Field_Type_WordPress_Biography::sanitize_for_db( string $value )

Sanitize the user field before saving it to db.


Parameters Parameters

$value

(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-biography.php

	public function sanitize_for_db( $value ) {
		return trim( $value );
	}

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.