Disable WooCommerce "Ship to a Different Address" Checkbox

If you'd like to make the WooCommerce checkout's "Ship to a Different Address?" tick box disabled by default, here are a couple of possibilities.

The first is using PHP:

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

An alternative method is to hide it with JavaScript, e.g.:

jQuery(function($){
	$('#ship-to-different-address-checkbox').attr('checked', false);
});

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.