ACF_Field_User::load_valuepublicACF 3.6.0

Filters the field value after it is loaded from the database.

Method of the class: ACF_Field_User{}

No Hooks.

Returns

Mixed.

Usage

$ACF_Field_User = new ACF_Field_User();
$ACF_Field_User->load_value( $value, $post_id, $field );
$value(mixed) (required)
The field value.
$post_id(mixed) (required)
The post ID where the value is saved.
$field(array) (required)
The field array containing all settings.

Changelog

Since 3.6.0 Introduced.

ACF_Field_User::load_value() code ACF 6.8.8

function load_value( $value, $post_id, $field ) {

	// Add compatibility for version 4.
	if ( $value === 'null' ) {
		return false;
	}
	return $value;
}