WC_Product::set_date_created()
Set product created date.
Method of the class: WC_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_date_created( $date );
- $date(string|int|null)
- 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
Changelog
Since 3.0.0 | Introduced. |
WC_Product::set_date_created() WC Product::set date created code WC 9.7.1
public function set_date_created( $date = null ) { $this->set_date_prop( 'date_created', $date ); }