ACF\Pro\Meta

WooOrder::update_reference │ public │ ACF 6.4

Updates a reference key in the database.

Method of the class: WooOrder{}

No Hooks.

Returns

integer|boolean.

Usage

$WooOrder = new WooOrder();
$WooOrder->update_reference( $object_id, $field_name, $value );
$object_id(int|string)
The ID of the object the metadata is for.
$field_name(string)
The name of the field to update the reference for.
Default: ''
$value(string)
The value of the reference key.
Default: ''

Changelog

Since 6.4 Introduced.

WooOrder::update_reference() code ACF 6.8.8

public function update_reference( $object_id = 0, string $field_name = '', string $value = '' ) {
	// Updated in update_value().
	return true;
}