Plugin Directory

Changeset 2680965


Ignore:
Timestamp:
02/17/2022 05:27:38 PM (4 years ago)
Author:
4wpbari
Message:

Redirect to my account woocommerce if user not logged for private file

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

Legend:

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

    r2476667 r2680965  
    195195        // If not logged-in, we ask for details
    196196        if ( !is_user_logged_in() ) {
    197             wp_redirect( wp_login_url( $_SERVER['REQUEST_URI'] ) );
     197            wp_redirect( get_permalink( get_option('woocommerce_myaccount_page_id')). '/?redirect_to=' . $_SERVER['REQUEST_URI'] );
    198198            exit;
    199199        }
     
    227227        // If not logged-in, we ask for details
    228228        if ( !is_user_logged_in() ) {
    229             wp_redirect( wp_login_url( $_SERVER['REQUEST_URI'] ) );
     229            wp_redirect( get_permalink( get_option('woocommerce_myaccount_page_id')). '/?redirect_to=' . $_SERVER['REQUEST_URI'] );
    230230            exit;
    231231        }
  • private-file-for-woocommerce/trunk/private-file-for-woocommerce.php

    r2680941 r2680965  
    33Plugin Name: Private File For Woocommerce
    44Plugin URI: https://www.4wp.it
    5 Version: 1.0.3
     5Version: 1.0.4
    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

    r2680941 r2680965  
    66Tested up to: 5.9
    77Tested WooCommerce up to: 6.2.0
    8 Stable Tag: 1.0.3
     8Stable Tag: 1.0.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070== Changelog ==
    7171
    72 = 1.0.23 =
     72= 1.0.4 =
    7373
    74 Redirect to my account woocommerce if user not logged
     74Redirect to my account woocommerce if user not logged for private file
     75
     76= 1.0.3 =
     77
     78Redirect to my account woocommerce if user not logged for private pages
    7579
    7680= 1.0.2 =
Note: See TracChangeset for help on using the changeset viewer.