Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce megye hiba
function custom_checkout_fields($fields)
{
// unset($fields['billing']['billing_country']); //ország letiltása
unset($fields['billing']['billing_state']);
// unset($fields['shipping']['shipping_country']); //ország letiltása
unset($fields['shipping']['shipping_state']);
return $fields;
}
add_filter('woocommerce_checkout_fields', 'custom_checkout_fields');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.