WC_Product::supports PHP Method

supports() public method

Product classes should override this to declare support (or lack of support) for a feature.
Since: 2.5.0
public supports ( string $feature ) : boolean
$feature string string The name of a feature to test support for.
return boolean True if the product supports the feature, false otherwise.
    public function supports($feature)
    {
        return apply_filters('woocommerce_product_supports', in_array($feature, $this->supports) ? true : false, $feature, $this);
    }
WC_Product