WC_Product::get_reviews_allowed
Return if reviews is allowed.
Method of the class: WC_Product{}
No Hooks.
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_reviews_allowed( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::get_reviews_allowed() WC Product::get reviews allowed code WC 10.7.0
public function get_reviews_allowed( $context = 'view' ) {
return $this->get_prop( 'reviews_allowed', $context );
}