Categories
CMS Mastering Development Wordpress

Woocmmrce access country on woocommerce_cart_shipping_method_full_label filter

I’m tiring to add some labels to woocommerce shipping methods on checkout cart, it works fine, but i need to access customer selected county inside custom_shipping_labels function, is that possoble to get customer selected country add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘custom_shipping_labels’, 10000, 2 ); function custom_shipping_labels($label, $method){ $shpmethod = $label; if(strpos($shpmethod, ‘Express Shipping’) !== false){ $shpmethod = str_replace(‘Express […]