BuddyDev

Search

[Resolved] Make one page public on site, part 2

  • Participant
    Level: Enlightened
    Posts: 88
    Torben Heikel Vinther on #19403

    Hi Brajesh

    I’ve read the thread at https://buddydev.com/support/forums/topic/make-one-page-public-on-site/ and your updated code works fine.

    But if I also want to exclude the link to “Lost your password?”, how should I do that?
    I’ve tried to add the link to your code like this:
    $excluded_pages = array( 'terms', '/my-account/lost-password' );
    but it doesn’t work 🙁

    As you see I’m using WooCommerce as well, so the link to lost password is not “wp-login.php?action=lostpassword” as on a plain WP install.

    I hope you can help 🙂

    Best regards
    Torben

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #19415

    Hi Torben,
    Instead of using ‘/my-account/lost-password’, pleas use ‘my-account’

    That should do it.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 88
    Torben Heikel Vinther on #19417

    Awesome. It worked. Thanks 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #19423

    You are welcome 🙂

The topic ‘ [Resolved] Make one page public on site, part 2’ is closed to new replies.

This topic is: resolved