How To Exclude US States From Shipping On WooCommerce

Share on facebook
Facebook
Share on twitter
Twitter
Share on reddit
Reddit
Share on whatsapp
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

Hide Product Prices For Users On WooCommerce

https://youtu.be/4_xiZdE_No4 PHP Code // Hide prices add_action(‘after_setup_theme’,’magik_activate_filter’) ; function magik_activate_filter() { add_filter(‘woocommerce_get_price_html’, ‘magik_show_price_logged’); } function magik_show_price_logged($price) { if(is_user_logged_in() ) { return $price;

Elementor Background Overlay On Mobile & Tablet

https://youtu.be/lmO1xAs7NBc CSS Code – Elementor Pro Version /*Tablet background Overlay Elementor Pro*/ @media(max-width:1024px){ selector.elementor-element > .elementor-background-overlay { background-color: transparent; background-image: linear-gradient( 80deg,

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

45 Minute Wordpress Support

Get your Wordpress questions answered and your Wordpress issues resolved.