Changeset 2680965
- Timestamp:
- 02/17/2022 05:27:38 PM (4 years ago)
- Location:
- private-file-for-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/core-addons/private-file/private-file-addon.class.php (modified) (2 diffs)
-
private-file-for-woocommerce.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
private-file-for-woocommerce/trunk/includes/core-addons/private-file/private-file-addon.class.php
r2476667 r2680965 195 195 // If not logged-in, we ask for details 196 196 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'] ); 198 198 exit; 199 199 } … … 227 227 // If not logged-in, we ask for details 228 228 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'] ); 230 230 exit; 231 231 } -
private-file-for-woocommerce/trunk/private-file-for-woocommerce.php
r2680941 r2680965 3 3 Plugin Name: Private File For Woocommerce 4 4 Plugin URI: https://www.4wp.it 5 Version: 1.0. 35 Version: 1.0.4 6 6 Description: 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. 7 7 Author: Roberto Bottalico -
private-file-for-woocommerce/trunk/readme.txt
r2680941 r2680965 6 6 Tested up to: 5.9 7 7 Tested WooCommerce up to: 6.2.0 8 Stable Tag: 1.0. 38 Stable Tag: 1.0.4 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 == Changelog == 71 71 72 = 1.0. 23=72 = 1.0.4 = 73 73 74 Redirect to my account woocommerce if user not logged 74 Redirect to my account woocommerce if user not logged for private file 75 76 = 1.0.3 = 77 78 Redirect to my account woocommerce if user not logged for private pages 75 79 76 80 = 1.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.