' . __('Google Analytics', 'yak-admin') . ''; } } if (!function_exists('yak_google_analytics_options')) { function yak_google_analytics_options() { ?>



(this assumes a global tax rate... which is suboptimal and will need to be fixed in a future release)

region; if (empty($region)) { $region = $addr->state; } $orders = yak_get_orders(null, $order_num, null, null, false, false); $order = $orders[0]; $addr = yak_get_address('shipping'); $tax = $orders->total * $tax_calc; $content = " "; } else { $content = ''; } return $content; } add_shortcode('yak_google_analytics', 'yak_google_analytics_tag'); add_action('yak-misc-options-link', 'yak_google_analytics_options_link'); add_action('yak-misc-options', 'yak_google_analytics_options'); add_action('yak-update-options-google-analytics', 'yak_google_analytics_update_options'); ?>