WC_Product::set_date_created( string|integer|null $date = null )

Set product created date.


Description Description


Parameters Parameters

$date

(string|integer|null) (Optional) 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 value: null


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

	public function set_date_created( $date = null ) {
		$this->set_date_prop( 'date_created', $date );
	}

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.