shopp_product_categories_count()

get count of categories associated with a product

shopp_product_categories_count ( $product )

@param int $product (required) the product id
@return int count of categories

Description

get count of categories associated with a product

Example

// get number of categories associated with product 1
$category_count = shopp_product_categories_count( 1 );

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar