Automattic\WooCommerce\Vendor\Detection
MobileDetect::__call
Magic overloading method.
Method of the class: MobileDetect{}
No Hooks.
Returns
true|false
.
Usage
$MobileDetect = new MobileDetect(); $MobileDetect->__call( $name, $arguments );
- $name(string) (required)
- .
- $arguments(array) (required)
- .
MobileDetect::__call() MobileDetect:: call code WC 9.9.4
public function __call(string $name, array $arguments) { // make sure the name starts with 'is', otherwise if (substr($name, 0, 2) !== 'is') { throw new BadMethodCallException("No such method exists: $name"); } $key = substr($name, 2); return $this->matchUAAgainstKey($key); }