How to Remove lost password link to woocommerce account (8 posts)

  1. Robkk
    Posted 2 years ago #

    I would basically like to remove the function of the lost password link, so that it doesnt go to the woocommerce my account page settings.

    I want my login page to be the default wordpress login page and i want all of the functions like the "lost password" link.

    I dont want to use the woocommmerce my account settings so i will basically delete the page and all.

    If you guys could help me that would be great.


  2. davidsless
    Posted 2 years ago #

    i am interested in this too

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    @davidsless: If you require assistance then, as per the Forum Welcome, please post your own topic.

  4. Robkk
    Posted 2 years ago #

    @davidsless i solved my own solution

    just use a redirection plugin

    whatever url the lost password link redirects you ,use the redirect plugin to redirect that url you dont want, to something like this yoursite.com/login/?action=lostpassword

  5. diggeridoo
    Posted 1 year ago #

    Hi, searching about this issue as well, I've found the function to deal with this (without plugins)
    It just works fine for me.

    function reset_pass_url() {
        $siteURL = get_option('siteurl');
        return "{$siteURL}/wp-login.php?action=lostpassword";
    add_filter( 'lostpassword_url',  'reset_pass_url', 11, 0 );

    Seen in this post of woo community.

  6. teejayuu
    Posted 1 year ago #

    Hi diggeridoo,

    where did you put this function?

  7. diggeridoo
    Posted 1 year ago #

    Hi, you have to put this into the functions.php file within your theme.
    If you don't have experience, I recommend you to make a search about editing this file before changing it.

  8. gulin
    Posted 1 year ago #

    Thank U!
    but ..
    link (lost password) still in place - as it removed?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.