[wp-trac] [WordPress Trac] #55459: Change Login Label name
WordPress Trac
noreply at wordpress.org
Sun Jul 10 04:25:11 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:
------------------------------------+------------------------------
Changes (by sabernhardt):
* keywords: needs-patch => has-patch
Comment:
With [attachment:"55459.1.diff"], I could use the same function for both
the existing `login_form_defaults` filter and the proposed
`login_form_labels`:
{{{
function my_login_form_labels( $defaults ) {
$defaults['label_username'] = __( 'Username/Email', 'myplugin' );
$defaults['label_password'] = __( 'Strong Password', 'myplugin' );
$defaults['label_remember'] = __( 'Remain logged in', 'myplugin'
);
$defaults['label_log_in'] = __( 'Sign in', 'myplugin' );
return $defaults;
}
add_filter( 'login_form_labels', 'my_login_form_labels', 10, 1 );
add_filter( 'login_form_defaults', 'my_login_form_labels', 10, 1 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55459#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list