Cart::is_available_mode( string $mode )

If a given string is a valid and available mode.


Parameters

$mode

(string) (Required) Which mode we are testing.


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tickets/Commerce/Cart.php

	public function is_available_mode( $mode ) {
		return in_array( $mode, $this->get_available_modes(), true );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.9 Introduced.