WP_Customize_Manager::is_ios(): bool

In this article

Determines whether the user agent is iOS.

Return

bool Whether the user agent is iOS.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.