WC_Product::set_average_rating( float $average )

Set average rating. Read only.


Description Description


Parameters Parameters

$average

(float) (Required) Product average rating.


Top ↑

Source Source

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

	public function set_average_rating( $average ) {
		$this->set_prop( 'average_rating', wc_format_decimal( $average ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.