[wp-trac] [WordPress Trac] #29657: Apply Filters in Login Form Usename Field Label

WordPress Trac noreply at wordpress.org
Sat Sep 13 13:35:20 UTC 2014


#29657: Apply Filters in Login Form Usename Field Label
------------------------------------+------------------------------
 Reporter:  manishkrag              |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:  4.0
 Severity:  normal                  |  Resolution:
 Keywords:                          |     Focuses:  administration
------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 You can change any string via `gettext` filter:
 {{{
 function change_username_label_29657( $text, $original_text, $domain ) {
         if ( 'Username' === $original_text && 'default' === $domain )
                 $text = 'Your username';

         return $text;
 }
 add_filter( 'gettext', 'change_username_label_29657', 10, 3 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29657#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list