Show supplier orders, and preview

This commit is contained in:
Nedim Uka
2018-10-31 15:04:23 +01:00
parent 51cb2af438
commit 26353f0d80
9 changed files with 220 additions and 14 deletions

View File

@@ -310,4 +310,9 @@ function wiaas_admin_create_role_access_groups() {
Groups_Group::create(array(
'name' => 'admin',
));
}
function wiaas_db_update_update_supplier_order_capabilities() {
// add supplier role to view orders
wp_roles()->add_cap( 'supplier', 'edit_shop_orders' );
}