Make product category URLs heirarchical

Heirarchical URLs for custom taxonomies is an opt-in feature added
in WordPress 3.1. This commit enables that support by adding the
appropriate flag to the rewrite setting for the product_cat taxonomy.
This commit is contained in:
Andrew White 2012-02-06 12:37:50 +00:00
parent 3e89e19298
commit c084f6ed79
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ class Woocommerce {
'delete_terms' => 'manage_woocommerce_products',
'assign_terms' => 'manage_woocommerce_products',
),
'rewrite' => array( 'slug' => $category_base . $category_slug, 'with_front' => false ),
'rewrite' => array( 'slug' => $category_base . $category_slug, 'with_front' => false, 'heirarchical' => true ),
)
);