This commit is contained in:
Bilal Catic
2018-10-29 13:59:10 +01:00
parent bc39a69b7a
commit d2ce84b3fb
3 changed files with 6 additions and 33 deletions

View File

@@ -86,26 +86,15 @@ class Wiaas_Product_Category {
}
/**
* Determines if provided product is hardware
* Determines if provided product type is product (hardware or software)
* @param $product
*
* @return bool
*/
public static function is_hardware($product) {
return self::_get_product_category_type($product) === 'hardware';
public static function is_product($product) {
return self::_get_product_category_type($product) === 'product';
}
/**
* Determines if provided product is software
* @param $product
*
* @return bool
*/
public static function is_software($product) {
return self::_get_product_category_type($product) === 'software';
}
// PRIVATE