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.


Top ↑

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'] );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More