<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Generation of lostpassword url

[ad_1]

Replies: 1

Hello,

WordPress has a native function since version 2.8.0 which is filterable for generating the lostpassword URL, you should definitely use it instead of hardcoding it.

Here is the WP function: https://developer.projectdmc.org/reference/functions/wp_lostpassword_url/
Which is filterable with: https://developer.projectdmc.org/reference/hooks/lostpassword_url/

In your code there are 2 references of hardcoded lostpassword url generation:

  1. https://plugins.trac.projectdmc.org/browser/login-lockdown/tags/2.11/libs/functions.php#L178
  2. https://plugins.trac.projectdmc.org/browser/login-lockdown/tags/2.11/libs/functions.php#L187

Many thanks for your comprehension and help.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer