WC_Product::set_sale_price( string $price )

Set the product’s sale price.

Description Description

Parameters Parameters


(Required) sale price.

Top ↑

Source Source

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

	public function set_sale_price( $price ) {
		$this->set_prop( 'sale_price', wc_format_decimal( $price ) );

Top ↑

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.