Automattic\WooCommerce\Admin\Features\Fulfillments

Fulfillment::set_date_fulfilledpublicWC 10.1.0

Set the date the fulfillment was fulfilled. Input is normalized to UTC.

Method of the class: Fulfillment{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Fulfillment = new Fulfillment();
$Fulfillment->set_date_fulfilled( $date_fulfilled ): void;
$date_fulfilled(string) (required)
Date fulfilled. See set_date_updated() for accepted formats.

Changelog

Since 10.1.0 Introduced.
Since 10.8.0 Input is normalized to UTC before storage.

Fulfillment::set_date_fulfilled() code WC 10.9.1

public function set_date_fulfilled( string $date_fulfilled ): void {
	$normalized = $this->normalize_date_to_utc( $date_fulfilled );
	if ( null !== $normalized ) {
		$this->add_meta_data( '_date_fulfilled', $normalized, true );
	}
}