Added read private products permission to customer
This commit is contained in:
@@ -83,4 +83,8 @@ function wiaas_db_update_setup_customer_capabilities() {
|
||||
|
||||
$customer_role->add_cap('read_private_shop_orders');
|
||||
$customer_role->add_cap('read_shop_order');
|
||||
}
|
||||
}
|
||||
function wiaas_db_update_add_customer_read_permission() {
|
||||
$role = get_role( 'customer' );
|
||||
$role->add_cap( 'read_private_products' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user