WP_Customize_Manager::is_ios()publicWP 4.4.0

Determines whether the user agent is iOS.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

true|false. Whether the user agent is iOS.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->is_ios();

Changelog

Since 4.4.0 Introduced.

WP_Customize_Manager::is_ios() code WP 6.5.2

public function is_ios() {
	return wp_is_mobile() && preg_match( '/iPad|iPod|iPhone/', $_SERVER['HTTP_USER_AGENT'] );
}