[wp-trac] [WordPress Trac] #55459: Change Login Label name

WordPress Trac noreply at wordpress.org
Mon Apr 18 06:28:58 UTC 2022


#55459: Change Login Label name
------------------------------------+------------------------------
 Reporter:  wparslan                |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:
------------------------------------+------------------------------

Comment (by sabernhardt):

 Using the code in [attachment:"55459.diff"], I was able to change the
 labels with this filter:

 {{{
 add_filter( 'login_form_defaults', 'login_form_default_args_array', 10, 1
 );
 function login_form_default_args_array( $args ) {
         $args = array(
                 'label_username' => __( 'Username/Email' ),
                 'label_password' => __( 'Strong Password' ),
                 'label_remember' => __( 'Remain logged in' ),
                 'label_log_in'   => __( 'Sign in' ),
         );
         return $args;
 }
 }}}

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


More information about the wp-trac mailing list