WC_Product::set_reviews_allowed()
Set if reviews is allowed.
Method of the class: WC_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_reviews_allowed( $reviews_allowed );
- $reviews_allowed(true|false) (required)
- Reviews allowed or not.
Changelog
Since 3.0.0 | Introduced. |
WC_Product::set_reviews_allowed() WC Product::set reviews allowed code WC 8.7.0
public function set_reviews_allowed( $reviews_allowed ) { $this->set_prop( 'reviews_allowed', wc_string_to_bool( $reviews_allowed ) ); }