WC_Order::maybe_set_date_completed()

Maybe set date completed.


Description Description

Sets the date completed variable when transitioning to completed status.


Source Source

File: includes/class-wc-order.php

	protected function maybe_set_date_completed() {
		if ( $this->has_status( 'completed' ) ) {
			$this->set_date_completed( time() );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.