| @@ -22,8 +22,12 @@ | ||
| 22 | 22 | return $name; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public static function formatRoleString( $roleSlug ) { |
| 26 | + if ( GlobalPricingRule::GUEST_ROLE === $roleSlug ) { | |
| 27 | + return __( 'Guests (not logged in)', 'tier-pricing-table' ); | |
| 28 | + } | |
| 29 | + | |
| 26 | 30 | $roles = wp_roles()->roles; |
| 27 | 31 | |
| 28 | 32 | if ( array_key_exists( $roleSlug, $roles ) ) { |
| 29 | 33 | return $roles[ $roleSlug ]['name']; |