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

Set date on sale to.


Description Description


Parameters Parameters

$date

(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_on_sale_to( $date = null ) {
		$this->set_date_prop( 'date_on_sale_to', $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.