Changeset 3001870
- Timestamp:
- 11/26/2023 07:37:01 PM (2 years ago)
- Location:
- ade-custom-shipping/trunk
- Files:
-
- 3 edited
-
README.md (modified) (2 diffs)
-
ade-custom-shipping.php (modified) (2 diffs)
-
inc/pro/loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ade-custom-shipping/trunk/README.md
r2997438 r3001870 7 7 Requires PHP: 7.0 8 8 Tested up to: 6.4 9 Stable tag: 4.1. 29 Stable tag: 4.1.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 53 53 54 54 == Changelog == 55 56 = 4.1.3 = 57 58 Added update 55 59 56 60 = 4.1.2 = -
ade-custom-shipping/trunk/ade-custom-shipping.php
r2997438 r3001870 7 7 * Author URI: https://adeleyeayodeji.com 8 8 * Description: Add shipping zones 3 levels deep for ecommerce. 9 * Version: 4.1. 29 * Version: 4.1.3 10 10 * License: GPL2 11 11 * License URL: http://www.gnu.org/licenses/gpl-2.0.txt … … 24 24 function ade_custom_shipping_page_link($links) 25 25 { 26 $active_plugins = implode(',', apply_filters('active_plugins', get_option('active_plugins'))); 27 if (strpos($active_plugins, 'ade-custom-shipping-premium.php') === false) { 28 $links[] = '<a href="' . 29 admin_url('admin.php?page=ade-custom-shipping') . 30 '"><b>' . __('Enable LGA editor') . '</b></a>'; 31 } else { 32 $links[] = '<a href="' . 33 admin_url('admin.php?page=ade-custom-shipping-premium') . 34 '"><b>' . __('Go to Editor') . '</b></a>'; 35 } 26 36 $links[] = '<a href="' . 27 37 admin_url('admin.php?page=wc-settings&tab=shipping&zone_id=new') . 28 38 '">' . __('Go to Shipping') . '</a>'; 29 $links[] = '<a href="' .30 admin_url(!in_array('ade-custom-shipping-premium/ade-custom-shipping-premium.php', apply_filters('active_plugins', get_option('active_plugins'))) ? 'admin.php?page=ade-custom-shipping' : 'admin.php?page=ade-custom-shipping-premium') .31 '">' . __(!in_array('ade-custom-shipping-premium/ade-custom-shipping-premium.php', apply_filters('active_plugins', get_option('active_plugins'))) ? '<b>Enable LGA editor</b>' : 'Go to Editor') . '</a>';32 39 return $links; 33 40 } 41 34 42 function ade_custom_js() 35 43 { -
ade-custom-shipping/trunk/inc/pro/loader.php
r2869698 r3001870 2 2 // add basic plugin security. 3 3 defined('ABSPATH') || exit; 4 if (!in_array('ade-custom-shipping-premium/ade-custom-shipping-premium.php', apply_filters('active_plugins', get_option('active_plugins')))) { 4 $active_plugins = implode(',', apply_filters('active_plugins', get_option('active_plugins'))); 5 if (strpos($active_plugins, 'ade-custom-shipping-premium.php') === false) { 5 6 // adding to the menu 6 7 function _ade_custom_shipping_pro()
Note: See TracChangeset
for help on using the changeset viewer.