Warning: This method has been deprecated.
WC_Abstract_Legacy_Product::adjust_price( mixed $price )
Adjust a products price dynamically.
Description Description
Parameters Parameters
- $price
-
(Required)
Source Source
File: includes/legacy/abstract-wc-legacy-product.php
358 359 360 361 | public function adjust_price( $price ) { wc_deprecated_function( 'WC_Product::adjust_price' , '3.0' , 'WC_Product::set_price / WC_Product::get_price' ); $this ->data[ 'price' ] = $this ->data[ 'price' ] + $price ; } |
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |