For our customization want to remove specific country from woocommerce country list then place the following snippet in functions.php within your theme folder!.

function woo_remove_specific_country( $country ) 
{
   unset($country["US"]);
   return $country; 
}
add_filter( 'woocommerce_countries', 'woo_remove_specific_country', 10, 1 );

Have any doubt, then comment here!

Leave a Reply

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