How To Exclude US States From Shipping On WooCommerce

Facebook
Twitter
Reddit
WhatsApp

PHP Code:

				
					/**
 * Exclude these states
 */
add_filter( 'woocommerce_states', 'custom_woocommerce_states' );

function custom_woocommerce_states( $states ) {

	unset($states['US']['AK']);

	return $states;
}
				
			
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

More to explorer

How to run Javascript on your Elementor popup

https://youtu.be/WA9v_YrylIU jQuery jQuery(window).load(function() { jQuery.each( elementorFrontend.documentsManager.documents, ( id, document ) => { if ( document.getModal ) { // It’s a popup document

0
Would love your thoughts, please comment.x
()
x

45 Minute Wordpress Support

Get your Wordpress questions answered and your Wordpress issues resolved.