Ubigeo Perú provides reusable data, public APIs, and form components for selecting Peruvian departments, provinces, and districts while retrieving the final UBIGEO code.
The plugin can be used as a standalone location selector or as a dependency for other plugins that need structured Peruvian location data.
Features:
Shortcode:
[bahia_ubigeo_peru]
Required fields:
[bahia_ubigeo_peru required="true"]
Custom field prefix:
[bahia_ubigeo_peru name_prefix="billing_location"]
Public PHP functions:
bahia_ubigeo_get_departamentos()bahia_ubigeo_get_provincias( $department_code )bahia_ubigeo_get_distritos( $province_code )bahia_ubigeo_get_by_code( $ubigeo_code )bahia_ubigeo_is_available()REST endpoints:
/wp-json/bahia-ubigeo/v1/departments/wp-json/bahia-ubigeo/v1/provinces?department=15/wp-json/bahia-ubigeo/v1/districts?province=1501/wp-json/bahia-ubigeo/v1/location/150101