wpmem_username_link

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

[snippet slug=wpmem_username_link lang=php]

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