Last active
October 28, 2016 15:02
-
-
Save butlerblog/27f46171aa84baf60522 to your computer and use it in GitHub Desktop.
Filters for changing the forgot password and register page links in the WP-Members login forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment