{"id":28,"date":"2025-06-18T16:53:05","date_gmt":"2025-06-18T16:53:05","guid":{"rendered":"https:\/\/modelohost.net\/store-plugins\/?page_id=28"},"modified":"2025-06-18T16:53:25","modified_gmt":"2025-06-18T16:53:25","slug":"documentation","status":"publish","type":"page","link":"https:\/\/modelohost.net\/store-plugins\/documentation\/","title":{"rendered":"About the plugin"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Hide Checkout Fields &#8211; WC Blocks Compatible<br>Description<br>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).<\/h4>\n\n\n\n<p>Features<br>\u2705 Full compatibility : Works with classic checkout and WC Blocks<br>\u2705 Intuitive interface : Easy-to-use admin panel<br>\u2705 Multilingual : Includes Spanish and English translations<br>\u2705 Optimized CSS : Hiding via CSS with !important<br>\u2705 Dashboard widget : Informative widget on the main dashboard<br>\u2705 Security : Permissions and nonces verification<br>Adjustable Fields<br>The plugin allows you to hide the following checkout fields:<\/p>\n\n\n\n<p>Address (address_1)<br>Zip Code (postcode)<br>City (city)<br>State\/Province (state)<br>Installation<br>Upload the ocultar-campos-checkout-wcblocks folder to the \/wp-content\/plugins\/ directory<br>Activate the plugin from the WordPress dashboard<br>Go to WooCommerce &gt; Checkout Fields to configure<br>Configuration<br>Access settings : WooCommerce &gt; Checkout Fields<br>Select fields : Check the fields you want to hide<br>Save changes : Changes are applied immediately<br>Compatibility<br>WordPress : 5.0 or higher<br>WooCommerce : 3.0 or higher<br>WC Blocks : Compatible with all versions<br>PHP : 7.4 or higher<br>File Structure<\/p>\n\n\n\n<p>ocultar-campos-checkout-wcblocks\/<br>\u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.php # Main file<br>\u251c\u2500\u2500 includes\/<br>\u2502 \u251c\u2500\u2500 admin-menu.php # Admin panel<br>\u2502 \u2514\u2500\u2500 hooks.php # Hooks and filters<br>\u251c\u2500\u2500 languages\/<br>\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks.pot # Translation template<br>\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.po # Spanish<br>\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-es_ES.mo # Spanish (compiled)<br>\u2502 \u251c\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.po # English<br>\u2502 \u2514\u2500\u2500 ocultar-campos-checkout-wcblocks-en_US.mo # English (compiled)<br>\u2514\u2500\u2500 README.md<\/p>\n\n\n\n<p># Documentation<br>Technical Features<br>Hiding Methods<br>Country Locale Filter : Modifies WooCommerce regional behavior<br>Checkout Fields Filter : Directly manipulates checkout fields<br>CSS Injection : Applies CSS styles to visually hide fields<br>Used CSS Selectors<br>Classic checkout: .woocommerce-billing-fields, .woocommerce-shipping-fields<br>WC Blocks: .wp-block-woocommerce-checkout-billing-address-block, .wp-block-woocommerce-checkout-shipping-address-block<br>Development<br>Enable Debug Mode<br>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.<\/p>\n\n\n\n<p>Adding New Fields<br>To add support for new fields, modify:<\/p>\n\n\n\n<p>$campos_disponibles array in admin-menu.php<br>$campos_mapping array in hooks.php<br>The switch statement inside the CSS function<br>Translations<br>The plugin includes full translation support:<\/p>\n\n\n\n<p>Spanish (es_ES) : Included<br>English (en_US) : Included<br>Other languages : Use the .pot file as a base<br>To add a new language, copy the .pot file and translate the strings accordingly.<\/p>\n\n\n\n<p>Support<br>Version : 1.2<br>Author : Alvaro Artagaveytia Alonso<br>URI : https:\/\/modelohost.net<br>License : GPL2<br>Changelog<br>v1.2 (Current)<br>\u2705 Fixed language file names<br>\u2705 Complete Spanish and English translations<br>\u2705 POT file for new translations<br>\u2705 Full documentation<br>\u2705 Enhanced security checks<br>v1.1<br>Added compatibility with WC Blocks<br>Improved admin panel<br>v1.0<br>Initial release<br>Support for classic checkout<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hide Checkout Fields &#8211; WC Blocks CompatibleDescriptionWordPress\/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\u2705 Full compatibility : Works with classic checkout and WC Blocks\u2705 Intuitive interface : Easy-to-use admin panel\u2705 Multilingual : Includes Spanish and English translations\u2705 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"class_list":["post-28","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/pages\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":3,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/pages\/28\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/pages\/28\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/modelohost.net\/store-plugins\/wp-json\/wp\/v2\/media?parent=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}