Title: state required
Last modified: June 20, 2023

---

# state required

 *  Resolved [Andreas Gerogiakomos](https://wordpress.org/support/users/ageroth/)
 * (@ageroth)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/state-required/)
 * Hi,
   Am the programer of this site and i want to make state filed required.I try
   this code:
 * 
   add_filter( ‘woocommerce_billing_fields’, ‘ts_require_wc_company_field’);function
   ts_require_wc_company_field( $fields ) {$fields[‘billing_state’][‘required’] 
   = true;return $fields;}
 * But it doesn work,
   Can you help me how to do it?
 * The customer has Flexible Checkout Fields PRO 3.5.4
 * 
   Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstate-required%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/state-required/#post-16840074)
 * Hello [@ageroth](https://wordpress.org/support/users/ageroth/)
 * I am sorry, but our plugin does not have the function allows you to make state
   field required.
 * Your scenario is a custom modification for a specific case and our technical 
   support does not cover it.
 * Please note that this option is not controlled by our plugin, for a reason
 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/state-required/#post-16859384)
 * I am marking this topic as resolved as we have not received any new replies. 
   Please let us know if you need our help again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘state required’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/state-required/#post-16859384)
 * Status: resolved