pdate the reference for. * @param string $value The value of the reference key. * @return integer|boolean */ public function update_reference( $object_id = 0, string $field_name = '', string $value = '' ) { return update_metadata( $this->location_type, $object_id, $this->reference_prefix . $field_name, $value ); } /** * Deletes a field value from the database. * * @since 6.4 * * @param integer|string $object_id The ID of the object the metadata is for. * @param array $field The field array. * @return boolean */ public function delete_value( $object_id = 0, array $field = array() ): bool { return delete_metadata( $this->location_type, $object_id, $field['name'] ); } /** * Deletes a reference key from the database. * * @since 6.4 * * @param integer|string $object_id The ID of the object the metadata is for. * @param string $field_name The name of the field to delete the reference from. * @return boolean */ public function delete_reference( $object_id = 0, string $field_name = '' ): bool { return delete_metadata( $this->location_type, $object_id, $this->reference_prefix . $field_name ); } }