Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Remove iPhone detection on login page

Found a solution. Add this to the functions file:

function remove_iphone_detection() {
    global $is_iphone;
    $is_iphone = false;
}

add_action('init', 'remove_iphone_detection');

Though this removes iphone detection from wordpress a a whole, not just the login page, it achieved what I needed.

Related Posts:

  1. Send admin to a different login than users?
  2. How to Change the Default Home Page for the WordPress Dashboard?
  3. How-to make the admin area mobile friendly [closed]
  4. Are there any action like ‘init_frontend’
  5. Cannot access admin panel
  6. Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
  7. A similar hook as wp_head for the admin area
  8. Daily notices of failed login attempts for non-existent admin user
  9. How to Remove the “Restore” Link in Quick Edit?
  10. Use latest jQuery in WordPress (admin interface)
  11. Setting Login with User Name and Password default option for Jetpack Admin Login
  12. I keep getting logged out in Firefox
  13. Adding markup to column text in “Edit Pages” admin page
  14. Error thrown. Cannot create references to/from string offsets
  15. Disable HTML (Text) Tab in Post Editor
  16. Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
  17. How to determine if an admin is logged in outside the loop
  18. Manage users custom column add class “num”
  19. Unable to login, old site with previous developer gone
  20. Custom Thickbox Broken on Dashboard Page?
  21. Where should I hook into admin?
  22. Using shared SSL for login/admin
  23. wp-login behind nginx reverse-proxy inaccessible — bad redirect?
  24. Can’t access dashboard as administrator, login as any other level works though
  25. WordPress Admin Login Redirect Problem
  26. Problems with WP_List_Table and hooks
  27. Unable to Access WP Admin or Login buttons after Migration
  28. using rewrites to secure login page
  29. Client system for media review?
  30. WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
  31. Keep Logged in Users out of Admin Panel
  32. Why can’t a custom postype be registered with “admin_init” hook?
  33. Remove Permalink From Admin Edit Post
  34. Show excerpt if no title in admin view
  35. Seems that admin_post_{action} does not executing
  36. Unable to get to the admin panel
  37. get_current_screen and the WP_Screen class
  38. I can’t access the login panel on my offline website
  39. Admin login not working
  40. Filter WooCommerce Orders
  41. Can’t login to my admin area
  42. Does deleting the table users prevent all logins?
  43. Locked out of WordPress website from wrong amount of login attempts
  44. current_user_can(‘administrator’) not working in custom login
  45. Want to know who is login Admin/User
  46. Any known plugins for master admin login to edit all on front end?
  47. Login to admin by frontend form?
  48. Error “Sorry, you are not allowed to access this page”
  49. I can’t access login page
  50. Admins loggin in to our wordpress site default to the admin page
  51. ‘Conflict’ with action deleted_post and is_admin()
  52. WordPress login not working
  53. Login to Admin Dashboard Problem
  54. WordPress login process is hanging
  55. WordPress “Hide WP” Gives Me Error After Admin Login [closed]
  56. Scripts are not called until I login from wordpress backend
  57. Disable wp-admin log on lightbox overlay
  58. How to cancel redirection to admin side
  59. Can’t access my wp admin: captcha images invisible, gives me error message
  60. 2FA for admin login only, is it doable?
  61. Admin Login page not working at all
  62. WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
  63. New User Notification – Setting Email
  64. My Account Lost Administrator permission
  65. WordPress admin panel is blank
  66. How to add a new link to the default register form’s footer links?
  67. I don’t have permission to save the theme options I created myself?
  68. Use the wordpress admin table
  69. Pull Random Images From Options Page [closed]
  70. Content is displayed under admin bar [closed]
  71. different startsite for IOS and change menu
  72. Cant enter admin page with SSL
  73. deploying a standard build of wordpress in WHM/cPanel
  74. You do not have permission to access this document on form submit
  75. Different customer login form than administrator login form?
  76. Private messaging plugins + custom admin
  77. Woo Commerce Settings for Check-out Form [closed]
  78. Does wp_login hook fire on user registration?
  79. Filtered dropdown for author?
  80. Add custom css class to wp-list-table row for custom post type
  81. How to make the Panel // WP-Admin lighter via Mobile
  82. Custom column with post ID not working in CPT
  83. Change order of the block editor’s panel
  84. How to enforce authentication for all resources?
  85. Mixed language in admin backend
  86. What Role to assign remote site developer?
  87. Add a user to edit the layout of a site
  88. CSS Styles specific to Admin Sidebar not loading
  89. 500 error for regular users, not for admin
  90. Display admin sidebar into custom post pages if logged
  91. Display notice in block editor after wp_insert_post_data hook
  92. Changing login url
  93. Modify ‘the_content’ appearance in the admin area
  94. Change password reqts with NO plugin without breaking resetpass link?
  95. WordPress site down for my IP only after trying to implement .htaccess whitelist
  96. I accidentally rejected my wordpress admin account!
  97. Unknown phantom user “wordpress” created with admin privileges
  98. Is there a way to assign a default Category to a Post when the user creates a new Post?
  99. Hide Dashboard and Profile from non admin in sidebar
  100. Redirecting after login except for a specific page
Categories admin Tags admin, hooks, iphone, login, mobile
How do I remove this menu bar?
How to show multiple images in a slideshow for a portfolio page

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress