Last active
February 3, 2023 09:51
-
-
Save jjmontalban/d6aa59030f751f34a7c9345bb8c8c51f to your computer and use it in GitHub Desktop.
Deshabilitar provincias en el registro woocommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Deshabilitar provincias */ | |
add_filter('woocommerce_states', 'eliminar_provincias'); | |
function eliminar_provincias( $provincias ) | |
{ | |
unset($provincias['ES']['TF']); | |
unset($provincias['ES']['GC']); | |
unset($provincias['ES']['CE']); | |
unset($provincias['ES']['ML']); | |
return $provincias; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment