Automattic\WooCommerce\Admin\Features\Fulfillments
Fulfillment::set_date_fulfilled
Set the date the fulfillment was fulfilled. Input is normalized to UTC.
Метод класса: Fulfillment{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Fulfillment = new Fulfillment(); $Fulfillment->set_date_fulfilled( $date_fulfilled ): void;
- $date_fulfilled(строка) (обязательный)
- Date fulfilled. See set_date_updated() for accepted formats.
Список изменений
| С версии 10.1.0 | Введена. |
| С версии 10.8.0 | Input is normalized to UTC before storage. |
Код Fulfillment::set_date_fulfilled() Fulfillment::set date fulfilled WC 11.1.2
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 );
}
}