Description
The default link for retrieving a forgotten username takes the User Profile page set in the plugin’s settings and adds a query string . The wpmem_username_link filter hook allows you to filter that link without filtering the entire dialog.
Parameters
$link
(string) (required) The URL of the username reminder location.
$tag
(string) (optional) Indicates the ‘wpmem_{$tag}_link’ filter being run (fogot|reg|pwdreset|username)
Usage
add_filter( 'wpmem_username_link', 'my_username_link', 10, 2 ); function my_username_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_username_link to wpmem_{$tag}_link).
3.2.5 Added $tag parameter.
Source
wpmem_username_link is located in includes/class-wp-members-forms.php
Related