Cart::is_available_mode( string $mode )
If a given string is a valid and available mode.
Contents
Parameters
- $mode
-
(string) (Required) Which mode we are testing.
Return
(bool)
Source
File: src/Tickets/Commerce/Cart.php
public function is_available_mode( $mode ) {
return in_array( $mode, $this->get_available_modes(), true );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |