Plugin Directory

Changeset 3001870


Ignore:
Timestamp:
11/26/2023 07:37:01 PM (2 years ago)
Author:
biggidroid
Message:

Added update

Location:
ade-custom-shipping/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ade-custom-shipping/trunk/README.md

    r2997438 r3001870  
    77Requires PHP: 7.0
    88Tested up to: 6.4
    9 Stable tag: 4.1.2
     9Stable tag: 4.1.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5353
    5454== Changelog ==
     55
     56= 4.1.3 =
     57
     58Added update
    5559
    5660= 4.1.2 =
  • ade-custom-shipping/trunk/ade-custom-shipping.php

    r2997438 r3001870  
    77 * Author URI: https://adeleyeayodeji.com
    88 * Description: Add shipping zones 3 levels deep for ecommerce.
    9  * Version: 4.1.2
     9 * Version: 4.1.3
    1010 * License: GPL2
    1111 * License URL: http://www.gnu.org/licenses/gpl-2.0.txt
     
    2424function ade_custom_shipping_page_link($links)
    2525{
     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  }
    2636  $links[] = '<a href="' .
    2737    admin_url('admin.php?page=wc-settings&tab=shipping&zone_id=new') .
    2838    '">' . __('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>';
    3239  return $links;
    3340}
     41
    3442function ade_custom_js()
    3543{
  • ade-custom-shipping/trunk/inc/pro/loader.php

    r2869698 r3001870  
    22// add basic plugin security.
    33defined('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')));
     5if (strpos($active_plugins, 'ade-custom-shipping-premium.php') === false) {
    56    // adding to the menu
    67    function _ade_custom_shipping_pro()
Note: See TracChangeset for help on using the changeset viewer.