WooCommerce · Arazzo Workflow
WooCommerce Upsert Product Category
Version 1.0.0
Find a product category by slug and create it only if it does not already exist.
Provider
Workflows
upsert-category
Upsert a product category, creating it only when it is missing.
Searches for an existing product category by name and either reads the matched category or creates a new one when no match exists.
1
findCategory
listProductCategories
Search existing product categories for one matching the supplied name, returning at most one result.
2
getExisting
getProductCategory
Read the matched category to confirm its current name and slug.
3
createNew
createProductCategory
Create a new product category when no existing category matched the name.