Where is the list of countries and states located in Wordpress? When you select the USA on the statement form, the “state” field changes immediately to contain a list of states. I would like to imitate this behavior for other countries. For example, when you select Honduras, you will get a list of states of this country.
Is there an XML file, php file, or database table in which Wordpress accesses this information? so that it can be edited to add states without adding a plugin or adding additional code.
I know that you can access the list from code using WC()->countries->get_stateshow does it ever get it?
source
share