WC_Product::set_reviews_allowed( bool $reviews_allowed )
Set if reviews is allowed.
Description Description
Parameters Parameters
- $reviews_allowed
-
(Required) Reviews allowed or not.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_reviews_allowed( $reviews_allowed ) { $this->set_prop( 'reviews_allowed', wc_string_to_bool( $reviews_allowed ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |