WC_Order::set_date_paid()publicWC 1.0

Set date paid.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order = new WC_Order();
$WC_Order->set_date_paid( $date );
$date(string|int|null)
UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
Default: null

WC_Order::set_date_paid() code WC 8.9.0

public function set_date_paid( $date = null ) {
	$this->set_date_prop( 'date_paid', $date );
}