Plugin Directory

Changeset 2680941


Ignore:
Timestamp:
02/17/2022 04:33:34 PM (4 years ago)
Author:
4wpbari
Message:

Redirect to my account woocommerce if user not logged

Location:
private-file-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • private-file-for-woocommerce/trunk/includes/core-addons/private-page/private-page-addon.class.php

    r2476667 r2680941  
    116116        // If not logged-in, we ask for details
    117117        if ( !is_user_logged_in() ) {
    118             wp_redirect( wp_login_url( $_SERVER['REQUEST_URI'] ) );
     118            wp_redirect( get_permalink( get_option('woocommerce_myaccount_page_id')). '/?redirect_to=' . $_SERVER['REQUEST_URI'] );
    119119            exit;
    120120        }
  • private-file-for-woocommerce/trunk/private-file-for-woocommerce.php

    r2630774 r2680941  
    33Plugin Name: Private File For Woocommerce
    44Plugin URI: https://www.4wp.it
    5 Version: 1.0.2
     5Version: 1.0.3
    66Description: Addons for my account woocommerce with the possibility to get a page on your site where they can access private file, private pages and one shared page.
    77Author: Roberto Bottalico
  • private-file-for-woocommerce/trunk/readme.txt

    r2630774 r2680941  
    44Tags: private file, woocommerce, private content, myaccount woocommerce
    55Requires at least: 4.9
    6 Tested up to: 5.8.2
    7 Tested WooCommerce up to: 5.9.0
    8 Stable Tag: 1.0.2
     6Tested up to: 5.9
     7Tested WooCommerce up to: 6.2.0
     8Stable Tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070== Changelog ==
    7171
     72= 1.0.23 =
     73
     74Redirect to my account woocommerce if user not logged
     75
    7276= 1.0.2 =
    7377
Note: See TracChangeset for help on using the changeset viewer.