WordPress at Your Fingertips
function is not described

WC_Coupon::set_date_modified() public WC 3.0.0

Set date_modified

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

No Hooks.


null. Nothing.


$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_date_modified( $date );
$date(string|int|null) (required)
UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if there is no date.


Since 3.0.0 Introduced.

Code of WC_Coupon::set_date_modified() WC 5.7.1

public function set_date_modified( $date ) {
	$this->set_date_prop( 'date_modified', $date );