-
Home
-
Wholesale Suite – B2B, Dynamic Pricing & WooCommerce Wholesale Prices
-
2.2.5 (latest)
-
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 |
| unregisterCustomRole() |
S |
64 |
3 |
9 |
| filter_registered_wholesale_roles() |
S |
67 |
3 |
8 |
| wc_navigation_bar() |
S |
63 |
2 |
11 |
| getInstance() |
S |
71 |
2 |
6 |
| removeCustomCapability() |
S |
66 |
2 |
8 |
| getAllRegisteredWholesaleRoles() |
S |
68 |
2 |
7 |
| getAllRoles() |
S |
69 |
2 |
7 |
| __construct() |
S |
91 |
1 |
2 |
| addCustomCapability() |
S |
70 |
1 |
6 |
| removeCustomRole() |
S |
73 |
1 |
5 |
| run() |
S |
71 |
1 |
5 |