I’m using the WooCommerce plugin with WordPress and within my theme I’d like to list all categories within a navigation menu with PHP.
I’ve tried using woocommerce_product_categories();
but I don’t want the images, or other HTML elements, just their names (and maybe permalinks).
How can I get that data?
taken from that very same function:
will give you the list of product categories. easy!