ACF\Meta

Option::get_valuepublicACF 6.4

Retrieves a field value from the database.

Метод класса: Option{}

Хуков нет.

Возвращает

Разное.

Использование

$Option = new Option();
$Option->get_value( $object_id, $field );
$object_id(int|строка)
The ID of the object the metadata is for.
$field(массив)
The field array.
По умолчанию: array()

Список изменений

С версии 6.4 Введена.

Код Option::get_value() ACF 6.4.2

public function get_value( $object_id = 0, array $field = array() ) {
	return get_option( $object_id . '_' . $field['name'], null );
}