Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #736038

    Hi everybody
    I’ve some problems with the wordpress/woocomerce login/register process. The enfold template comes with a designed wordpress/woocomerce page [woocommerce_my_account]. now i would like to change all logins to this side. For this i make the follow script and put it in the functions.php but this script doesn’t work fine. i have errors with the aviabuilder. Please can you help me.

    /**
    * WP userlogin url redirect to WC my-account
    * ------------------------------------------------------------------------------
    */
    
    function wpum_admin_login_screen_redirect()
    {
        global $pagenow;
    
        if ($pagenow == 'wp-login.php' && !is_user_logged_in()) {
            wp_redirect( wpum_get_core_page_url('login') );
            exit;
        }
    }
    add_action('init', 'woocommerce_my_account');

    Thanks in advanced and best wishes
    Thomas

    #736099

    Hi THobbes!

    You can do that from WooCommerce, if you go to the setttings, you can pick the Account page, which yoiu can use.

    Let us know if that works out for you

    Regards,
    Basilis

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.