Here's how you can do it:

Hide Shipping Address at Checkout:

To hide the shipping address at checkout, you can use the woocommerce_checkout_fields filter to remove the shipping fields. Add the following code to your theme's functions.php file:

function hide_shipping_address_at_checkout($fields) {


    return $fields;


add_filter('woocommerce_checkout_fields', 'hide_shipping_address_at_checkout');


function hide_shipping_fields_css() {

    echo '<style>.woocommerce-shipping-fields { display: none !important; }</style>';


add_action('wp_head', 'hide_shipping_fields_css');


This code will not only remove the shipping address fields but will also add a CSS rule to hide the entire shipping fields section by targeting the woocommerce-shipping-fields class.
Make sure to add this modified code to your theme's functions.php file.

Remember to test these changes on a staging site first to ensure they work as expected before implementing them on your live website.