About the plugin

Hide Checkout Fields – WC Blocks Compatible
Description
WordPress/WooCommerce plugin that allows you to hide specific checkout form fields. Works with both the traditional WooCommerce checkout and the new checkout blocks (WC Blocks).

Features
✅ Full compatibility : Works with classic checkout and WC Blocks
✅ Intuitive interface : Easy-to-use admin panel
✅ Multilingual : Includes Spanish and English translations
✅ Optimized CSS : Hiding via CSS with !important
✅ Dashboard widget : Informative widget on the main dashboard
✅ Security : Permissions and nonces verification
Adjustable Fields
The plugin allows you to hide the following checkout fields:

Address (address_1)
Zip Code (postcode)
City (city)
State/Province (state)
Installation
Upload the ocultar-campos-checkout-wcblocks folder to the /wp-content/plugins/ directory
Activate the plugin from the WordPress dashboard
Go to WooCommerce > Checkout Fields to configure
Configuration
Access settings : WooCommerce > Checkout Fields
Select fields : Check the fields you want to hide
Save changes : Changes are applied immediately
Compatibility
WordPress : 5.0 or higher
WooCommerce : 3.0 or higher
WC Blocks : Compatible with all versions
PHP : 7.4 or higher
File Structure

ocultar-campos-checkout-wcblocks/
├── ocultar-campos-checkout-wcblocks.php # Main file
├── includes/
│ ├── admin-menu.php # Admin panel
│ └── hooks.php # Hooks and filters
├── languages/
│ ├── ocultar-campos-checkout-wcblocks.pot # Translation template
│ ├── ocultar-campos-checkout-wcblocks-es_ES.po # Spanish
│ ├── ocultar-campos-checkout-wcblocks-es_ES.mo # Spanish (compiled)
│ ├── ocultar-campos-checkout-wcblocks-en_US.po # English
│ └── ocultar-campos-checkout-wcblocks-en_US.mo # English (compiled)
└── README.md

# Documentation
Technical Features
Hiding Methods
Country Locale Filter : Modifies WooCommerce regional behavior
Checkout Fields Filter : Directly manipulates checkout fields
CSS Injection : Applies CSS styles to visually hide fields
Used CSS Selectors
Classic checkout: .woocommerce-billing-fields, .woocommerce-shipping-fields
WC Blocks: .wp-block-woocommerce-checkout-billing-address-block, .wp-block-woocommerce-checkout-shipping-address-block
Development
Enable Debug Mode
For developers, you can enable debug mode by uncommenting the ocultar_campos_debug() function in includes/hooks.php. This will display information in the browser console.

Adding New Fields
To add support for new fields, modify:

$campos_disponibles array in admin-menu.php
$campos_mapping array in hooks.php
The switch statement inside the CSS function
Translations
The plugin includes full translation support:

Spanish (es_ES) : Included
English (en_US) : Included
Other languages : Use the .pot file as a base
To add a new language, copy the .pot file and translate the strings accordingly.

Support
Version : 1.2
Author : Alvaro Artagaveytia Alonso
URI : https://modelohost.net
License : GPL2
Changelog
v1.2 (Current)
✅ Fixed language file names
✅ Complete Spanish and English translations
✅ POT file for new translations
✅ Full documentation
✅ Enhanced security checks
v1.1
Added compatibility with WC Blocks
Improved admin panel
v1.0
Initial release
Support for classic checkout