Changeset 3079702
- Timestamp:
- 05/01/2024 03:09:53 AM (3 months ago)
- Location:
- automated-postnord-shipping
- Files:
-
- 1609 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
automated-postnord-shipping/trunk/hitshipo_pn_basic.php
r3079148 r3079702 5 5 * Plugin URI: https://myshipi.com/ 6 6 * Description: Shipping label and commercial invoice automation included. 7 * Version: 1.2. 07 * Version: 1.2. 8 8 * Author: Shipi 9 9 * Author URI: https://myshipi.com/ … … 31 31 } 32 32 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 automatically38 exit(wp_redirect(admin_url('admin.php?page=' . $setting_value . '&tab=shipping§ion=hitshipo_pn')));39 }40 }41 add_action('activated_plugin', 'hitshipo_woo_pn_plugin_activation');42 33 43 34 // set HPOS feature compatible by plugin -
automated-postnord-shipping/trunk/readme.txt
r3079148 r3079702 5 5 Tested up to: 6.5 6 6 Requires PHP: 5.6 7 Stable tag: 1.2. 07 Stable tag: 1.2. 8 8 License: GPLv3 or later License 9 9 URI: http://www.gnu.org/licenses/gpl-3.0.html … … 97 97 98 98 == Changelog == 99 100 99 101 100 102 = 1.1.8 =
Note: See TracChangeset
for help on using the changeset viewer.