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:
parent
3e89e19298
commit
c084f6ed79
|
@ -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 ),
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue