WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

ProductQuery::prepare_price_filter() protected WC 1.0

Converts price filter from subunits to decimal.

{} It's a method of the class: ProductQuery{}

No Hooks.

Return

float. Price filter in decimal format.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_price_filter( $price_filter );
$price_filter(string|int) (required)
Raw price filter in subunit format.

Code of ProductQuery::prepare_price_filter() WC 5.8.0

protected function prepare_price_filter( $price_filter ) {
	return floatval( $price_filter / ( 10 ** wc_get_price_decimals() ) );
}