You appear to be a bot. Output may be restricted
Description
Displays country group selects in shipping method's options
Usage
OIK_Shipping_Pro::display_country_groups();
Parameters
Returns
voidSource
File name: oik-weightcountry-shipping-pro/class-oik-shipping-pro.phpLines:
1 to 19 of 19
function display_country_groups() { $woocommerce = function_exists('WC') ? WC() : $GLOBALS['woocommerce']; $shippingCountries = method_exists($woocommerce->countries, 'get_shipping_countries') ? $woocommerce->countries->get_shipping_countries() : $woocommerce->countries->countries; $number = $this->country_group_no; for ( $counter = 1; $number >= $counter; $counter++ ) { $this->form_fields['countries'.$counter] = array( 'title' => sprintf(__( 'Country Group %s', 'oik-weightcountry-shipping-pro' ), $counter), 'type' => 'multiselect', 'class' => 'chosen_select', 'css' => 'width: 450px;', 'default' => '', 'options' => $shippingCountries ); } }View on GitHub