[wp-trac] [WordPress Trac] #34356: I should be able to change the Login/Logout text in wp_loginout()

WordPress Trac noreply at wordpress.org
Mon Oct 19 15:06:49 UTC 2015


#34356: I should be able to change the Login/Logout text in wp_loginout()
------------------------------------+------------------------------
 Reporter:  aubreypwd               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:
------------------------------------+------------------------------

Comment (by swissspidy):

 There's already the `loginout` filter you can use to completely customize
 the link. There's also the universal `gettext` filter to override
 internationalized strings.

 Since the function is so simple, just creating your own or using the
 `loginout` filter is much easier than adding two separate filters that
 only change the text. Core only uses the function in the Meta widget, so
 that'd be trivial.

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


More information about the wp-trac mailing list