{"id":14,"date":"2025-06-18T14:21:03","date_gmt":"2025-06-18T14:21:03","guid":{"rendered":"https:\/\/modelohost.net\/store-plugins\/?post_type=product&#038;p=14"},"modified":"2026-02-11T14:01:51","modified_gmt":"2026-02-11T14:01:51","slug":"hide-checkout-fields","status":"publish","type":"product","link":"https:\/\/modelohost.net\/store-plugins\/product\/hide-checkout-fields\/","title":{"rendered":"Hide Checkout Fields"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"Hide Checkout Fields\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ndFNKm3llCA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h4>Hide Checkout Fields &#8211; WC Blocks Compatible<br \/>\nDescription<br \/>\nWordPress\/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).<\/h4>\n<p>Features<br \/>\n\u2705 Full compatibility : Works with classic checkout and WC Blocks<br \/>\n\u2705 Intuitive interface : Easy-to-use admin panel<br \/>\n\u2705 Multilingual : Includes Spanish and English translations<br \/>\n\u2705 Optimized CSS : Hiding via CSS with !important<br \/>\n\u2705 Dashboard widget : Informative widget on the main dashboard<br \/>\n\u2705 Security : Permissions and nonces verification<br \/>\nAdjustable Fields<br \/>\nThe plugin allows you to hide the following checkout fields:<\/p>\n<p>Address (address_1)<br \/>\nZip Code (postcode)<br \/>\nCity (city)<br \/>\nState\/Province (state)<br \/>\nInstallation<br \/>\nUpload the ocultar-campos-checkout-wcblocks folder to the \/wp-content\/plugins\/ directory<br \/>\nActivate the plugin from the WordPress dashboard<br \/>\nGo to WooCommerce &gt; Checkout Fields to configure<br \/>\nConfiguration<br \/>\nAccess settings : WooCommerce &gt; Checkout Fields<br \/>\nSelect fields : Check the fields you want to hide<br \/>\nSave changes : Changes are applied immediately<br \/>\nCompatibility<br \/>\nWordPress : 5.0 or higher<br \/>\nWooCommerce : 3.0 or higher<br \/>\nWC Blocks : Compatible with all versions<br \/>\nPHP : 7.4 or higher<br \/>\nFile Structure<\/p>\n<p>ocultar-campos-checkout-wcblocks\/<br \/>\n\u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.php # Main file<br \/>\n\u251c\u2500\u2500 includes\/<br \/>\n\u2502 \u251c\u2500\u2500 admin-menu.php # Admin panel<br \/>\n\u2502 \u2514\u2500\u2500 hooks.php # Hooks and filters<br \/>\n\u251c\u2500\u2500 languages\/<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.pot # Translation template<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.po # Spanish<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.mo # Spanish (compiled)<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.po # English<br \/>\n\u2502 \u2514\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.mo # English (compiled)<br \/>\n\u2514\u2500\u2500 README.md<\/p>\n<p># Documentation<br \/>\nTechnical Features<br \/>\nHiding Methods<br \/>\nCountry Locale Filter : Modifies WooCommerce regional behavior<br \/>\nCheckout Fields Filter : Directly manipulates checkout fields<br \/>\nCSS Injection : Applies CSS styles to visually hide fields<br \/>\nUsed CSS Selectors<br \/>\nClassic checkout: .woocommerce-billing-fields, .woocommerce-shipping-fields<br \/>\nWC Blocks: .wp-block-woocommerce-checkout-billing-address-block, .wp-block-woocommerce-checkout-shipping-address-block<br \/>\nDevelopment<br \/>\nEnable Debug Mode<br \/>\nFor 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.<\/p>\n<p>Adding New Fields<br \/>\nTo add support for new fields, modify:<\/p>\n<p>$campos_disponibles array in admin-menu.php<br \/>\n$campos_mapping array in hooks.php<br \/>\nThe switch statement inside the CSS function<br \/>\nTranslations<br \/>\nThe plugin includes full translation support:<\/p>\n<p>Spanish (es_ES) : Included<br \/>\nEnglish (en_US) : Included<br \/>\nOther languages : Use the .pot file as a base<br \/>\nTo add a new language, copy the .pot file and translate the strings accordingly.<\/p>\n<p>Support<br \/>\nVersion : 1.2<br \/>\nAuthor : Alvaro Artagaveytia Alonso<br \/>\nURI : https:\/\/modelohost.net<br \/>\nLicense : GPL2<br \/>\nChangelog<br \/>\nv1.2 (Current)<br \/>\n\u2705 Fixed language file names<br \/>\n\u2705 Complete Spanish and English translations<br \/>\n\u2705 POT file for new translations<br \/>\n\u2705 Full documentation<br \/>\n\u2705 Enhanced security checks<br \/>\nv1.1<br \/>\nAdded compatibility with WC Blocks<br \/>\nImproved admin panel<br \/>\nv1.0<br \/>\nInitial release<br \/>\nSupport for classic checkout<\/p>\n<p>&#8212;<\/p>\n<p>Espa\u00f1ol:<\/p>\n<p>Ocultar Campos Checkout &#8211; WC Blocks Personalizable<\/p>\n<p>## Descripci\u00f3n<\/p>\n<p>Plugin para WordPress\/WooCommerce que permite ocultar campos espec\u00edficos del formulario de checkout. Compatible tanto con el checkout tradicional de WooCommerce como con los nuevos bloques de checkout (WC Blocks).<\/p>\n<p>### Caracter\u00edsticas<\/p>\n<p>&#8211; \u2705 **Compatibilidad total**: Funciona con checkout cl\u00e1sico y WC Blocks<br \/>\n&#8211; \u2705 **Interfaz intuitiva**: Panel de administraci\u00f3n f\u00e1cil de usar<br \/>\n&#8211; \u2705 **Multidioma**: Incluye traducciones en espa\u00f1ol e ingl\u00e9s<br \/>\n&#8211; \u2705 **CSS optimizado**: Ocultaci\u00f3n mediante CSS con `!important`<br \/>\n&#8211; \u2705 **Dashboard widget**: Widget informativo en el panel principal<br \/>\n&#8211; \u2705 **Seguridad**: Verificaci\u00f3n de permisos y nonces<\/p>\n<p>### Campos controlables<\/p>\n<p>El plugin permite ocultar los siguientes campos del checkout:<\/p>\n<p>1. **Direcci\u00f3n** (address_1)<br \/>\n2. **C\u00f3digo Postal** (postcode)<br \/>\n3. **Ciudad** (city)<br \/>\n4. **Estado\/Provincia** (state)<\/p>\n<p>## Instalaci\u00f3n<\/p>\n<p>1. Sube la carpeta `ocultar-campos-checkout-wcblocks` al directorio `\/wp-content\/plugins\/`<br \/>\n2. Activa el plugin desde el panel de WordPress<br \/>\n3. Ve a **WooCommerce &gt; Campos Checkout** para configurar<\/p>\n<p>## Configuraci\u00f3n<\/p>\n<p>1. **Accede a la configuraci\u00f3n**: WooCommerce &gt; Campos Checkout<br \/>\n2. **Selecciona campos**: Marca los campos que deseas ocultar<br \/>\n3. **Guarda cambios**: Los cambios se aplican inmediatamente<\/p>\n<p>## Compatibilidad<\/p>\n<p>&#8211; **WordPress**: 5.0 o superior<br \/>\n&#8211; **WooCommerce**: 3.0 o superior<br \/>\n&#8211; **WC Blocks**: Compatible con todas las versiones<br \/>\n&#8211; **PHP**: 7.4 o superior<\/p>\n<p>## Estructura de archivos<\/p>\n<p>&#8220;`<br \/>\nocultar-campos-checkout-wcblocks\/<br \/>\n\u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.php # Archivo principal<br \/>\n\u251c\u2500\u2500 includes\/<br \/>\n\u2502 \u251c\u2500\u2500 admin-menu.php # Panel de administraci\u00f3n<br \/>\n\u2502 \u2514\u2500\u2500 hooks.php # Hooks y filtros<br \/>\n\u251c\u2500\u2500 languages\/<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.pot # Template de traducciones<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.po # Espa\u00f1ol<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.mo # Espa\u00f1ol (compilado)<br \/>\n\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.po # Ingl\u00e9s<br \/>\n\u2502 \u2514\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.mo # Ingl\u00e9s (compilado)<br \/>\n\u2514\u2500\u2500 README.md # Documentaci\u00f3n<br \/>\n&#8220;`<\/p>\n<p>## Funcionalidades t\u00e9cnicas<\/p>\n<p>### M\u00e9todos de ocultaci\u00f3n<\/p>\n<p>1. **Country Locale Filter**: Modifica el comportamiento regional de WooCommerce<br \/>\n2. **Checkout Fields Filter**: Manipula directamente los campos del checkout<br \/>\n3. **CSS Injection**: Aplica estilos CSS para ocultar visualmente los campos<\/p>\n<p>### Selectores CSS utilizados<\/p>\n<p>&#8211; Checkout cl\u00e1sico: `.woocommerce-billing-fields`, `.woocommerce-shipping-fields`<br \/>\n&#8211; WC Blocks: `.wp-block-woocommerce-checkout-billing-address-block`, `.wp-block-woocommerce-checkout-shipping-address-block`<\/p>\n<p>## Desarrollo<\/p>\n<p>### Activar modo debug<\/p>\n<p>Para desarrolladores, puedes activar el modo debug descomentando la funci\u00f3n `ocultar_campos_debug()` en `includes\/hooks.php`. Esto mostrar\u00e1 informaci\u00f3n en la consola del navegador.<\/p>\n<p>### Agregar nuevos campos<\/p>\n<p>Para agregar soporte a nuevos campos, modifica:<\/p>\n<p>1. Array `$campos_disponibles` en `admin-menu.php`<br \/>\n2. Array `$campos_mapping` en `hooks.php`<br \/>\n3. Switch statement en la funci\u00f3n CSS<\/p>\n<p>## Traducciones<\/p>\n<p>El plugin incluye soporte completo para traducciones:<\/p>\n<p>&#8211; **Espa\u00f1ol (es_ES)**: Incluido<br \/>\n&#8211; **Ingl\u00e9s (en_US)**: Incluido<br \/>\n&#8211; **Otros idiomas**: Usa el archivo `.pot` como base<\/p>\n<p>Para a\u00f1adir nuevos idiomas, copia el archivo `.pot` y traduce las cadenas correspondientes.<\/p>\n<p>## Soporte<\/p>\n<p>&#8211; **Versi\u00f3n**: 1.2<br \/>\n&#8211; **Autor**: Alvaro Artagaveytia Alonso<br \/>\n&#8211; **URI**: https:\/\/modelohost.net<br \/>\n&#8211; **Licencia**: GPL2<\/p>\n<p>## Changelog<\/p>\n<p>### v1.2 (Actual)<br \/>\n&#8211; \u2705 Correcci\u00f3n de nombres de archivos de idioma<br \/>\n&#8211; \u2705 Traducciones completas en espa\u00f1ol e ingl\u00e9s<br \/>\n&#8211; \u2705 Archivo POT para nuevas traducciones<br \/>\n&#8211; \u2705 Documentaci\u00f3n completa<br \/>\n&#8211; \u2705 Verificaci\u00f3n de seguridad mejorada<\/p>\n<p>### v1.1<br \/>\n&#8211; Compatibilidad con WC Blocks<br \/>\n&#8211; Panel de administraci\u00f3n mejorado<\/p>\n<p>### v1.0<br \/>\n&#8211; Versi\u00f3n inicial<br \/>\n&#8211; Soporte para checkout cl\u00e1sico<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allows hiding specific fields from the WooCommerce checkout form (includes support for blocks):<\/p>\n<p>\u2705\u00a0Address<\/p>\n<p>\u2705\u00a0Zip code<\/p>\n<p>\u2705City<\/p>\n<p>\u2705\u00a0State\/Province<\/p>\n<p>Languages: English\/Spanish<\/p>\n","protected":false},"featured_media":15,"comment_status":"open","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":""},"product_brand":[],"product_cat":[17],"product_tag":[20,19,18],"class_list":{"0":"post-14","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-plugins","7":"product_tag-checkout-page","8":"product_tag-hide-zip-code","9":"product_tag-woocommerce","11":"first","12":"instock","13":"downloadable","14":"shipping-taxable","15":"purchasable","16":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/product\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/comments?post=14"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/media\/15"}],"wp:attachment":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/product_brand?post=14"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/product_cat?post=14"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/product_tag?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}