WC_Order::set_date_paid()publicWC 1.0

Set date paid.

Метод класса: WC_Order{}

Хуков нет.


null. Ничего.


$WC_Order = new WC_Order();
$WC_Order->set_date_paid( $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.
По умолчанию: null

Код WC_Order::set_date_paid() WC 7.3.0

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