Add capability_type to product_variation
By default the product_variation has `capability_type = 'post'` which means that users need `edit_post` capability to edit. This change will make variation capabilities consistent with products, ie: `edit_product`
This commit is contained in:
parent
b91d3358ef
commit
b158d517e9
|
@ -269,6 +269,7 @@ class WC_Post_types {
|
|||
'public' => false,
|
||||
'hierarchical' => false,
|
||||
'supports' => false
|
||||
'capability_type' => 'product'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue