WP_Customize_Manager::is_ios() WordPress Method
The WP_Customize_Manager::is_ios() method is used to check if the current user is using an iOS device.
WP_Customize_Manager::is_ios() #
Determines whether the user agent is iOS.
Return
(bool) Whether the user agent is iOS.
Source
File: wp-includes/class-wp-customize-manager.php
public function is_ios() { return wp_is_mobile() && preg_match( '/iPad|iPod|iPhone/', $_SERVER['HTTP_USER_AGENT'] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |