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

Filter page title (displayed in browser tab) of wp-login

I don’t see a filter in wp-login for the title, but it does use __() so you might be able to use the gettext filter like:

add_filter('gettext', 'wpse_214367_change_login_title', 20, 3);

function wpse_214367_change_login_title( $translated_text, $untranslated_text, $domain ) {

     if( "Log In" == $untranslated_text  )
            $translated_text = "My New Title";

   return $translated_text;
}

EDIT: Please try this and let me know if it works. May also need to add a check to make sure you are on wp-login.php page

 add_filter('gettext', 'wpse_214367_change_login_title', 20, 3);

function wpse_214367_change_login_title( $translated_text, $untranslated_text, $domain ) {
    static $count=0;
     if( "Log In" == $untranslated_text AND $count === 0 ){
            $translated_text = "My New Title";
            $count++;
      }
   return $translated_text;
}

Related Posts:

  1. Remove description from on Home
  2. Editing ‘Password Reset’ E-mail
  3. Filter Widget Title Wrap
  4. Don’t replace “|” with Empty String (“”) when generating slugs from title
  5. Change “You are now logged out” text
  6. Anyway to edit the titlebar of WordPress Widgets in the Admin area?
  7. Alter only the page title, not the post titles within
  8. Changing document title only on a custom page template
  9. Filtering ‘the_title’ with option to return subhead?
  10. wp_title() empty on a static front page
  11. Can’t change the title tag with wp_title filter
  12. Setting title using wp_title filter
  13. Removing labels and tag on WordPress’s default login form
  14. Add a Span Around a Product Title in WooCommerce [closed]
  15. Customize user account activation message
  16. How do we check if the user is logging in or registering?
  17. Wrap h1-h6 in a div
  18. add filter login_redirect does not contain original requested redirect
  19. Change username before login
  20. Variables in post title
  21. Custom Login Errors and variables I can use
  22. Is it possible to use multiple spaces in title?
  23. WP action/filter to modify title before header output and article output?
  24. Correct method of redirecting user login
  25. Filters on Login Page
  26. How can I change the email that is inside the default email texts of wordpress?
  27. How do I hook my function to run only after submitting login form
  28. Change login CSS
  29. How to redirect non-logged in users to login with post_password_required()
  30. Filter media upload attachment meta
  31. Use of comment_reply_link_args filter
  32. Strip $before & $after strings from a page title
  33. How to redirect a unique link based on login status
  34. add_filter( ‘the_title’ gets through this if statement twice
  35. Filter Post Title without affecting screen-reader-text
  36. Modify WordPress Page Title ()
  37. login_url filter creates permanent wp-admin -> wp-login redirection loop
  38. How to filter page title for certain page?
  39. Login logout below menu bar
  40. get_the_archive_title hook unwanted changes!
  41. Hook into ‘when user logs in’ [persistent login]
  42. Hide H1 Title using the_title filter
  43. Admin filter/error if post title is too long
  44. Auto append text after the title?
  45. Change password reqts with NO plugin without breaking resetpass link?
  46. Gutenberg: Is there a way to know if current block is inside InnerBlocks?
  47. How to reorder billing fields in WooCommerce Checkout template? [closed]
  48. How to add a custom CSS class to core blocks in Gutenberg editor?
  49. Filter translations (gettext strings) on specific admin pages
  50. Filter hook before create order WooCommerce
  51. How to auto-translate custom user roles?
  52. add_filter for specific pages
  53. How to add attribute to output with wp_video_shortcode add_filter
  54. Change default settings used by gallery shortcode
  55. PHP5, Inheritance, Singleton – action & filter hook limitations
  56. Please explain me what the do_action does
  57. Add ‘if exists’ to filter
  58. How to check if “media_send_to_editor” is audio?
  59. Changing Order of Filters
  60. Please help me through this example with a filter to understand how they work
  61. Filter custom post types in archive
  62. WordPress tag cloud add more links
  63. How can I filter block registration based on post-type? (Block alignment settings)
  64. wp_insert_post_data filter not working correctly after upgrade to WordPress 5
  65. Yoast SEO hooks overriding themselves
  66. Passing variable from child theme to parent theme
  67. Question about how do wordpress filters/actions work
  68. How to center oEmbedded content
  69. How to take options from form fields and turn them in to links?
  70. How add a group by to the query used by the media library?
  71. Why doesn’t my simple the_title filter get applied?
  72. How to properly modify WP Vary or any existing headers?
  73. WordPress Image update filter
  74. How to remove this filter?
  75. Load Posts’ individual body content on index starting at char 200 of each post
  76. How to combine multiple body classes
  77. How to replace username with email address in users table
  78. why require – does not load filter
  79. term_link filter rewrite link only applying half of condition?
  80. How can I filter tag_description()?
  81. Making an add_filter() call from within an add_filter() call
  82. Action hook to control access to certain parts of my site
  83. Finding actual functions added to hooks and filters
  84. How to apply filter on get_the_post_thumbnail()
  85. Use alternative front page if cookie is set
  86. Setting the page title in a plugin, but not outside my plugin
  87. how to output HTML tags in post_content and not as plain text
  88. Security question – Display a General Custom Login Error Message
  89. How to apply a filter to everything?
  90. WP Job Manager – display search results from custom search form in taxonomy-job_listing_category page
  91. Conditionally (cpt) filter previous and next_post_link
  92. changing size image within the content
  93. Identify admin/logout and more filters
  94. Sanitizing a custom query’s clauses
  95. How can I display wp_link_pages before a shortcode, if it is used, or display after content?
  96. How to create a list of terms who’s posts also have a predefined external term?
  97. Limit total tags in the_content
  98. Change or replace user_profile_picture_description filter, to stop stripping whitespace
  99. remove_function method removing next priority action too while removing current priority
  100. Insert selection from filter everything pro into gravity forms field
Categories filters Tags filters, login, title
If user is logged in not working
Problem copying WordPress site to localhost server

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