WP_Customize_Manager::is_ios(): bool

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. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

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