Warning: This method has been deprecated. Use set_allowed_values() instead.

BP_XProfile_Field_Type::set_whitelist_values( string|array $values )

Add a value to this type’s list of allowed values that profile data will be asserted against.


Parameters Parameters

$values

(string|array) (Required) Whitelisted values.


Top ↑

Return Return

(BP_XProfile_Field_Type)


Source Source

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

	public function set_whitelist_values( $values ) {
		_deprecated_function( __METHOD__, '7.0.0', 'BP_XProfile_Field_Type::set_allowed_values()' );
		$this->set_allowed_values( $values );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Use set_allowed_values() instead.
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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