-
Home
-
Wholesale Suite – WooCommerce Wholesale Prices, B2B, Catalog Mode, Order Form, Wholesale User Roles, Dynamic Pricing & More
-
2.2.0.2
-
Code
-
Classes
- WWP_Wholesale_Roles
Total Complexity |
43 |
Dependencies |
3 |
Dependents |
18 |
Total lines |
374 |
Lines of code |
154 |
Logical lines of code |
89 |
Comment lines |
170 |
Methods |
17 |
Properties |
1 |
Methods 17
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_all_wholesale_user_ids() |
S |
53 |
4 |
23 |
getUserRoles() |
S |
66 |
5 |
7 |
getUserWholesaleRole() |
S |
61 |
4 |
11 |
registerCustomRole() |
S |
56 |
3 |
18 |
add_wholesale_role_to_body_class() |
S |
65 |
4 |
9 |
addCustomRole() |
S |
61 |
3 |
12 |
filter_registered_wholesale_roles() |
S |
67 |
3 |
8 |
unregisterCustomRole() |
S |
64 |
3 |
9 |
wc_navigation_bar() |
S |
63 |
2 |
11 |
getAllRegisteredWholesaleRoles() |
S |
68 |
2 |
7 |
removeCustomCapability() |
S |
66 |
2 |
8 |
getInstance() |
S |
71 |
2 |
6 |
getAllRoles() |
S |
69 |
2 |
7 |
__construct() |
S |
91 |
1 |
2 |
removeCustomRole() |
S |
73 |
1 |
5 |
addCustomCapability() |
S |
70 |
1 |
6 |
run() |
S |
71 |
1 |
5 |