Hi @4dm1n ,
I understand that you’d like to remove a specific field from the WooCommerce checkout page without relying on a plugin.
To remove a field, you’ll need to add a little custom function to your theme’s functions.php file. It’s always best to use a child theme to keep your changes safe during theme updates. Alternatively, if you want a safer approach, you can use the Code Snippets plugin.
Here’s an example to remove the “Company Name” field (billing_company):
add_filter( 'woocommerce_checkout_fields', 'custom_remove_woocommerce_checkout_fields' );
function custom_remove_woocommerce_checkout_fields( $fields ) {
unset( $fields['billing']['billing_company'] );
return $fields;
}
For more guidance, you can refer to the following resources, which explain how to customize checkout fields using hooks and filters:
One thing to keep in mind: If you’re using a block-based theme, this code might not work because the new Cart and Checkout blocks in WooCommerce are built using JavaScript and React. These don’t support PHP hooks, and instead use JavaScript events and filters. If that’s the case, you may need to consult a developer for assistance or utilize third-party plugin.
Please note that under our Support Policy, we cannot provide extensive assistance with customizations. For more complex or advanced changes, we recommend reaching out to Codeable or a Certified WooExpert.
I hope this helps point you in the right direction!