Filters for changing the forgot password and register page links in the WP-Members login forms
<?php
add_filter( 'wpmem_username_link_str', 'my_username_link_str', 10, 2 );
function my_username_link_str( $str, $link ) {
return "<a href=\"$link\">Retrieve Username</a>";
}
<?php
add_filter( 'wpmem_sb_reg_link_str', 'my_sb_reg_link_str', 10, 2 );
function my_sb_reg_link_str( $str, $link ) {
return "<a href=\"$link\">Register Here.</a>";
}
<?php
add_filter( 'wpmem_sb_forgot_link_str', 'my_sb_forgot_link_str', 10, 2 );
function my_sb_forgot_link_str( $str, $link ) {
return "<a href=\"$link\">Reset Password.</a>";
}
<?php
add_filter( 'wpmem_reg_link_str', 'my_reg_link_str', 10, 2 );
function my_reg_link_str( $str, $link ) {
return "<a href=\"$link\">New Users Register Here.</a>";
}
<?php
// Changes the WP-Members register link wherever it is used (main body & sidebar)
add_filter( 'wpmem_reg_link', 'my_reg_link' );
function my_reg_link( $link ) {
return wp_registration_url();
}
<?php
add_filter( 'wpmem_forgot_link_str', 'my_forgot_link_str', 10, 2 );
function my_forgot_link_str( $str, $link ) {
return "<a href=\"$link\">Forgot your password?</a>";
}
<?php
// Changes the WP-Members forgot password link wherever it is used (main body & sidebar)
add_filter( 'wpmem_forgot_link', 'my_forgot_link' );
function my_forgot_link( $link ) {
return wp_lostpassword_url();
}