acf_field_post_object::load_valuepublicACF 3.6

This filter is applied to the $value after it is loaded from the db

Method of the class: acf_field_post_object{}

No Hooks.

Returns

mixed. $value

Usage

$acf_field_post_object = new acf_field_post_object();
$acf_field_post_object->load_value( $value, $post_id, $field );
$value(mixed) (required)
The value found in the database.
$post_id(mixed) (required)
The post_id from which the value was loaded.
$field(array) (required)
The field array holding all the field options.

Changelog

Since 3.6 Introduced.

acf_field_post_object::load_value() code ACF 6.8.8

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

	// ACF4 null
	if ( $value === 'null' ) {
		return false;
	}

	// return
	return $value;
}