WC_Product::set_date_on_sale_from()
Set date on sale from.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Product = new WC_Product(); $WC_Product->set_date_on_sale_from( $date );
- $date(строка|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.
По умолчанию: null
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product::set_date_on_sale_from() WC Product::set date on sale from WC 9.6.0
public function set_date_on_sale_from( $date = null ) { $this->set_date_prop( 'date_on_sale_from', $date ); }