ProductCategories
ProductCategories class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/ProductCategories.php
Methods Methods
- build_category_tree — Build hierarchical tree of categories.
- fill_category_children — Build hierarchical tree of categories by appending children in the tree.
- get_attributes — Get block attributes.
- get_block_type_attributes — Get block attributes.
- get_categories — Get categories (terms) from the db.
- get_container_classes — Get the list of classes to apply to this block.
- get_image_html — Returns the category image html
- getCount — Get the count, if displaying.
- render — Render the Product Categories List block.
- renderDropdown — Render the category list as a dropdown.
- renderDropdownOptions — Render dropdown options list.
- renderList — Render the category list as a list.
- renderListItems — Render a list of terms.