Remove Mandatory Fields from Checkout

Last updated on Tuesday, August 23rd, 2011

These instructions are intended for those who are proficient in theme development. The relevant tutorials on developing & customising themes can be found on If this is beyond you, we do offer a competitively-priced theme development service starting at £33 per hour. Please contact us for further details.

You can remove the mandatory requirement for specific fields in the checkout – using the filter eshopCheckoutReqd – via a function in your theme’s functions.php file.


// Remove zip/ post code from mandatory fields on checkout form.
function my_mandatory_fields ($reqd) {
	$new_reqd = array();
	foreach( $reqd as $item ) {
		if ( $item != 'zip') $new_reqd[] = $item;
	return $new_reqd;
add_filter( 'eshopCheckoutReqd',  'my_mandatory_fields');

WordPress Support Services