Files
wp-go-form/PROJECT.md
2026-06-07 14:40:30 +02:00

1.6 KiB

WordPress plugin for managing Go (Baduk/Weiqi) tournament registrations. Collects player data via frontend forms and exports entries to tournament management systems (Pairgoth, OpenGotha, McMahon, CSV).

Relevant files:

  • main.php - Plugin entry point with WordPress hooks
  • go-form-plugin/go-form-plugin.php - Core plugin logic (forms, entries, EGD integration, exports)
  • go-form-plugin/database-schema.sql - MySQL schema for 4 tables (forms, entries, custom_fields, entry_custom_values)
  • go-form-plugin/export/csv.php - CSV export handler
  • go-form-plugin/export/pairgoth.php - Pairgoth JSON export handler
  • go-form-plugin/export/opengotha.php - OpenGotha XML export handler
  • go-form-plugin/export/mcmahon.php - McMahon XML export handler
  • go-form-plugin/export/mcmahon-help.php - McMahon documentation/reference
  • go-form-plugin/templates/form-shortcode.php - Frontend form template
  • go-form-plugin/templates/settings-page.php - Admin dashboard template
  • go-form-plugin/templates/table.php - Entries table display
  • README.md - Full documentation

Nuances:

  • Ranks stored as integers (0-47): 0-29=30k-1k, 30-38=1d-9d, 39-47=1p-9p
  • Rating auto-calculated: rating = (rank * 100) - 900
  • EGD integration: searches https://europeangodatabase.eu/EGD/GetPlayerDataByData.php and GetPlayerDataByPIN.php
  • Uses WordPress nonces, manage_options capability, $wpdb->prepare() for security
  • Foreign keys with CASCADE delete

To LLM

Update this file if the changes you have done are worth updating here. The intent of this file is to give you a rough idea of the project, from where you can explore further, if needed.