WordPress at Your Fingertips
function is not described

WC_Customer::set_date_modified() public WC 3.0.0

Set the date this customer was last updated.

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

No Hooks.


null. Nothing.


$WC_Customer = new WC_Customer();
$WC_Customer->set_date_modified( $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


Since 3.0.0 Introduced.

Code of WC_Customer::set_date_modified() WC 6.1.0

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