Changeset 2265491
- Timestamp:
- 03/22/2020 07:13:14 PM (6 years ago)
- File:
-
- 1 edited
-
asm-manager/trunk/asmplsww.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asm-manager/trunk/asmplsww.php
r2265310 r2265491 1 1 <?php 2 2 3 /* 3 Plugin Name: Advanced Shipping Manager4 Plugin URI: http://wordpress.org/plugins/asm5 Description: Advanced Shipping Manager Integration to a New Platform6 Author: ASM7 Developer: ASM8 Version: 1.0.09 WC requires at least: 3.7.110 WC tested up to: 4.0.111 Author URI: https://www.softwebwork.net12 */4 Plugin Name: Advanced Shipping Manager 5 Plugin URI: http://wordpress.org/plugins/asm 6 Description: Advanced Shipping Manager Integration to a New Platform 7 Author: ASM 8 Developer: ASM 9 Version: 1.0.0 10 WC requires at least: 3.7.1 11 WC tested up to: 4.0.1 12 Author URI: https://www.softwebwork.net 13 */ 13 14 14 15 if (!defined('ABSPATH')) { 15 16 exit; // Exit if accessed directly 16 17 } 18 19 // If Woocommerce plugin installed 17 20 if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { 18 19 21 20 22 if (!class_exists('ASMPLSWW_Admin')) { … … 26 28 include_once 'includes/asmplsww_shipping_method.php'; 27 29 } 28 29 add_action('woocommerce_shipping_init', 'asmplsww_shipping_method_init');30 30 31 function asmplsww_shipping_method_add($methods) 32 { 33 $methods['asmplsww'] = 'ASMPLSWW_Shipping_Method'; 34 return $methods; 35 } 31 add_action('woocommerce_shipping_init', 'asmplsww_shipping_method_init'); 36 32 37 add_filter('woocommerce_shipping_methods', 'asmplsww_shipping_method_add'); 33 function asmplsww_shipping_method_add($methods) { 34 $methods['asmplsww'] = 'ASMPLSWW_Shipping_Method'; 35 return $methods; 36 } 38 37 38 add_filter('woocommerce_shipping_methods', 'asmplsww_shipping_method_add'); 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.