WordPress at Your Fingertips
function is not described

WC_Order::set_date_completed() public WC 1.0

Set date completed.

{} It's a method of the class: WC_Order{}

No Hooks.


null. Nothing.


$WC_Order = new WC_Order();
$WC_Order->set_date_completed( $date );
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

Code of WC_Order::set_date_completed() WC 5.6.0

public function set_date_completed( $date = null ) {
	$this->set_date_prop( 'date_completed', $date );