Skip to content

Instantly share code, notes, and snippets.

@softiconic
Last active December 2, 2023 18:57
Show Gist options
  • Save softiconic/191ddb7ed089d70af5c6e4567c0e0f59 to your computer and use it in GitHub Desktop.
Save softiconic/191ddb7ed089d70af5c6e4567c0e0f59 to your computer and use it in GitHub Desktop.
Remove the company name field from the WooCommerce checkout page.
//remove company name
add_filter( 'woocommerce_checkout_fields' , 'remove_company_name' );
function remove_company_name( $fields ) {
unset($fields['billing']['billing_company']);
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment