AllpaCode Ubigeo Perú

AllpaCode Ubigeo Perú

Details
View on WordPress

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:

  • Dependent selectors through shortcode.
  • Public PHP API for integrations with other plugins.
  • Public REST API for dynamic queries.
  • Optional WooCommerce checkout integration.
  • Contact Form 7 compatibility through shortcode rendering.
  • Department, province, and district data derived from the public CONCYTEC/INEI reference dataset.
  • Lightweight frontend assets with no jQuery dependency.
  • Translation-ready strings.

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

Details

Plugin code:
allpacode-ubigeo-peru
Plugin version:
1.0.0
Author:
Outdated:
No
WP version:
6.0 or higher
PHP version:
8.0 or higher
Test up to WP version:
7.0
Total installations:
0
Last updated:
2026-05-31
Rating:
Times rated:
0
departments
districts
peru
provinces
ubigeo