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:
Paul Kilmurray 2015-05-29 17:42:33 +08:00
parent b91d3358ef
commit b158d517e9
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ class WC_Post_types {
'public' => false,
'hierarchical' => false,
'supports' => false
'capability_type' => 'product'
)
)
);