If 'type' => 'select'
works for you then to solve state selection, you can try woocommerce_states
and woocommerce_countries_allowed_country_states
filter to list states only for the user’s country.
Reference : https://wordpress.stackexchange.com/a/320548/163113
Related Posts:
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- Using a filter with multiple parameters and $this
- Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout
- Redirect no product url’s to static url
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme
- Display custom product option in admin order details
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- How can i add product Accessories from front-end using custom php form?
- Add suffix to price html does not work
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- Add second price option based on payment method at cart item price
- How to add field new in account bacs in woocommerce?
- Woocommerce: hide “Price display suffix” when the VAT is zero
- How to pass/get data to/from the WooCommerce data-product_variations object?
- Filter hook before create order WooCommerce
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to get rid of the hover zoom in WooCommerce single products
- What’s the difference between WC() and $woocommerce
- How to change Woocommerce breadcrumbs content?
- Hook and send Woocommerce data after click Place Order button
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- Extend Woocommerce rest api routes fails
- Remove action on product archive page [closed]
- Reverse engineering of WooCommerce Storefront filters
- How to modify “[Product] has been added to your cart” in WooCommerce?
- WordPress codex: apply_filters – clarification on creating a new hook on the fly. How do we use it?
- The correct way to override WooCommerce product gallery from a plugin [closed]
- display available size on hover, in woocommerce shop page [closed]
- Customize WooCommerce orders displayed shipping
- Woocommerce Shipping module available only for type of products [closed]
- Woocommerce – Hide a Column in Cart Table
- How can I show an empty WooCommerce cart? [closed]
- Filter on a custom product attribute in WooCommerce using meta_query or tax_query [closed]
- Rewriting Woocommerce Product Filters To URL Segments
- How To Change The Html of Products filtration sidebar in Woocommerce?
- How to unhook a function in Woocommerce Template?
- woocommerce_get_price filter hook not working for product variation price
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Accessing parameters when adding filter
- Remove Order List Row Link in WooCommerce Admin?
- Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- Edit WooCommerce product content based on category
- woocommerce_package_rates not fired everytime
- differentiate hooks and filters on the same page [closed]
- ‘profile_update’ hook alternative for WooCommerce user meta data
- How to update custom field in WooCommerce
- Add Stripe Connect data to wc_stripe_payment_request
- Remove add to cart icon/view product button woocommerce
- Separeting product from post in search result
- Woocommerce get billing state manually
- How to subscribe free subscription on user registration in woocommerce subscription plugin?
- How to list all WC products by their attributes values?
- Showing the WordPress standard text area on a Woocommerce Single Product Page?
- Woocommerce Moving Review Below add to cart breaks button
- WooCommerce order complete email logic
- Filtering WooCommerce Orders by Category
- How to override Woocommerce functionality in Reports section?
- how can use woocommerce add to cart popup?
- Add default user field to WooCommerce checkout [closed]
- How to Update the Order-Items While Editing an Order on the WooCommerce Admin Order Screen [closed]
- Woocommerce “added to cart” message on main(home) page
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- Woocommerce: Complex query in pre_get_posts [closed]
- Using a filter to change a path
- Remove an action by extending class and replacing it
- How to re-arrange this hooked content?
- Pre filter woocommerce products to remove a certain category of products
- (Woocommerce) Order by price when entering specific category
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- How to apply these filters
- How to add order status class to the body tag?
- How to exclude a taxonomy from shop & search page wooCommerce?
- How to change a WooCommerce Subscription Deposit and Monthly Payment? [closed]
- How can I add a so i can show sale price under normal price
- password_reset doesnt work
- WooCommerce checkout page price break down table hook
- How to output woocommerce products to a page, style and modify the html structure
- Filter default_content only for products
- Woocommerce – Adding row to cart table
- How can I remove a WooCommerce Product Tab’s sub section in wp-admin?
- Conditional action hook
- How can I override wp_price woocommerce function in my theme
- Redirect to woocommerce checkout after adding to cart – item already in cart
- How to access page variable inside action hook
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- Conditionally run function based on custom meta value?
- How to sort WooCommerce products page by latest in-stock items first?
- How to alter taxes amounts when updating an order
- How to check if woocommerce_order_item_name is use in email?
- Hooks For Design variation in woo commerce single product page
- How to add woocommerce products header title in woocommerce_breadcrumb hook to function.php
- How to create a WooCommerce Product filter based on PHP foreach
- Use ID as slug for product category by default in WooCommerce?
- Variation prices breakdown only for single product page
- What is the problem with these lines of code?
- Two Filter Issue [closed]
- apply_filter and add_filter conflict