shopp_subcategories()

get array of ProductCategory objects that are children of specified category

shopp_subcategories ( $category, $args )

@param int $category the parent category id
@param array $args the shopp_categories() arguments
@return array ProductCategory objects

Description

get array of ProductCategory objects that are children of specified category

Example

// get an array of all subcategories of category 1
$categories = shopp_subcategories(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