WC_Product::supports PHP Метод

supports() публичный Метод

Product classes should override this to declare support (or lack of support) for a feature.
С версии: 2.5.0
public supports ( string $feature ) : boolean
$feature string string The name of a feature to test support for.
Результат 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