• tiago

    (@tiagogoncalves)


    Since i’m using woocommerce plugin for a members-only store, i have a My-acount page. With this plugin i managed to keep the entire site private with the exception for this page which i want to be public. I would like to know if it’s possible to redirect my users to the woocommerce my-acount page, instead the WordPress login page.

    Is that possible?

    Can i edit some plugin code line in order to do that?

    Thank you!

    https://www.ads-software.com/plugins/private-only/

Viewing 1 replies (of 1 total)
  • Thread Starter tiago

    (@tiagogoncalves)

    in order to do that, i edited the privateonly.php file on the plugin folder. On the line 52, where it says

    <?php if (isset($po_login[ 'use_wp_logo' ]) && $po_login[ 'use_wp_logo' ] == true ) {} else { ?>

    i add just before the “if” the wp redirect function:

    <?php
    wp_redirect( '/my-account/', 301 ); //  redirect to yourdomain.com/my-account
    if (isset($po_login[ 'use_wp_logo' ]) && $po_login[ 'use_wp_logo' ] == true ) {} else { ?>

    it would be cool to have this feature on a next plugin version. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to the public page’ is closed to new replies.