Description
The default link for resetting a forgotten password takes the User Profile page set in the plugin’s settings and adds a querystring to the password reset dialog. The wpmem_forgot_link filter hook allows you to filter that link without filtering the entire dialog.
This filters both of the possible forgot password links – the one in the sidebar widget and the one in the main body login form.
Parameters
$link
(string) (required) The URL of the forgot password location.
$tag
(string) (optional) Indicates the ‘wpmem_{$tag}_link’ filter being run (fogot|reg|pwdreset|username)
Usage
add_filter( 'wpmem_forgot_link', 'my_forgot_link', 10, 2 ); function my_forgot_link( $link, $tag ) { // Using home_url() instead makes your filter portable. return 'https://yoursite.com/your-page/'; }
Changelog
Introduced in version 2.8.0
3.1.7 Combined all _link filters to a single filter (Changed wpmem_forgot_link to wpmem_{$tag}_link).
3.2.5 Added $tag parameter.
Source
wpmem_forgot_link is located in includes/class-wp-members-forms.php
Related