ACF\Meta

MetaLocation::delete_valuepublicACF 6.4

Deletes a field value from the database.

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

Хуков нет.

Возвращает

true|false.

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

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

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

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

Код MetaLocation::delete_value() ACF 6.4.2

public function delete_value( $object_id = 0, array $field = array() ): bool {
	return delete_metadata( $this->location_type, $object_id, $field['name'] );
}