Plugin Directory

Changeset 3079702

Timestamp:
05/01/2024 03:09:53 AM (3 months ago)
Author:
hitstacks
Message:

Bug fix on redirection

Location:
automated-postnord-shipping
Files:
1609 added
2 edited

Legend:

Unmodified
Added
Removed
  • automated-postnord-shipping/trunk/hitshipo_pn_basic.php

    r3079148 r3079702  
    55 * Plugin URI: https://myshipi.com/
    66 * Description: Shipping label and commercial invoice automation included.
    7  * Version: 1.2.0
     7 * Version: 1.2.
    88 * Author: Shipi
    99 * Author URI: https://myshipi.com/
     
    3131}
    3232
    33 function hitshipo_woo_pn_plugin_activation($plugin)
    34 {
    35     if ($plugin == plugin_basename(__FILE__)) {
    36         $setting_value = version_compare(WC()->version, '2.1', '>=') ? "wc-settings" : "woocommerce_settings";
    37         // Don't forget to exit() because wp_redirect doesn't exit automatically
    38         exit(wp_redirect(admin_url('admin.php?page=' . $setting_value  . '&tab=shipping&section=hitshipo_pn')));
    39     }
    40 }
    41 add_action('activated_plugin', 'hitshipo_woo_pn_plugin_activation');
    4233
    4334// set HPOS feature compatible by plugin
  • automated-postnord-shipping/trunk/readme.txt

    r3079148 r3079702  
    55Tested up to: 6.5
    66Requires PHP: 5.6
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.
    88License: GPLv3 or later License
    99URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9797
    9898== Changelog ==
     99
     100
    99101
    100102= 1.1.8 =
Note: See TracChangeset for help on using the changeset viewer.