Description
Constructor for OIK_Shipping classSets the ID to 'awd_shipping'
Usage
OIK_Shipping::__construct();Parameters
Returns
voidSource
File name: oik-weightcountry-shipping/oik-weightcountry-shipping.phpLines:
1 to 12 of 12
function __construct() { $this->id = 'awd_shipping'; // Retain the original code rather than use 'oik_shipping'; $this->method_title = __( 'Weight/Country', 'oik-weightcountry-shipping' ); $this->admin_page_heading = __( 'Weight and country based shipping', 'oik-weightcountry-shipping' ); $this->admin_page_description = __( 'Define shipping by weight and country', 'oik-weightcountry-shipping' ); add_action( 'woocommerce_update_options_shipping_awd_shipping', array( &$this, 'process_admin_options' ) ); $this->init(); $this->display_country_groups(); }View on GitHub View on Trac
