[wp-trac] [WordPress Trac] #55388: Lost Password URL filtration

WordPress Trac noreply at wordpress.org
Mon Mar 14 05:03:30 UTC 2022

#55388: Lost Password URL filtration
 Reporter:  wparslan                         |      Owner:  (none)
     Type:  enhancement                      |     Status:  new
 Priority:  normal                           |  Milestone:  Awaiting Review
Component:  Login and Registration           |    Version:
 Severity:  normal                           |   Keywords:
  Focuses:  accessibility, coding-standards  |
 We have a register URL filter to change the whole tag of register link on

 wp-login.php line 1450
 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url(
 wp_registration_url() ), __( 'Register' ) );

 /** This filter is documented in wp-includes/general-template.php */
 echo apply_filters( 'register', $registration_url );

 So I suggest the lost password should also get the same treatment as well

 $lost_password_url = sprintf( '<a href="%s">%s</a>', esc_url(
 wp_lostpassword_url() ), __( 'Lost your password?' ) );

 echo apply_filters( 'lost_password_url', $lost_password_url );

Ticket URL: <https://core.trac.wordpress.org/ticket/55388>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list