Journal Events Admin Class Documentation

Overview

The Journal_Events_Admin class manages all WordPress admin functionality including custom post types, taxonomies, data stores and admin interfaces for event management.

Core Responsibilities

1. Post Type Registration

Manages registration of custom post types:

  • jc_event - Main event records
  • jc_entry_form - Event registration forms
  • jc_event_profile - Attendee profile forms
  • jc_players_room - Event venue/room details

2. Block Editor Integration

Provides custom blocks for event management:

  • Event Attendees block
  • Event Overview block
  • Entry Forms block
  • Profile Editor block

3. Data Store Management

Integrates with WooCommerce data stores for:

  • Event entries
  • Attendee profiles
  • Stay & play records
  • Event attendees

4. Admin Interface Components

Implements admin screens for:

  • Event setup and configuration
  • Entry form management
  • Ballot status management
  • Attendee management
  • CSV export generation

5. Metabox Integration

Provides custom meta fields for:

  • Event dates and capacity
  • Ballot status controls
  • Room/venue assignments
  • Registration settings

6. Permission Management

Handles role-based access control:

  • Admin capabilities
  • Report access
  • Entry management permissions
  • Attendee data access

Key Features

Event Management

  • Create/edit events
  • Set capacities and dates
  • Manage ballot status
  • Track registrations

Form Builder

  • Create registration forms
  • Profile form templates
  • Custom field options
  • Validation rules

Attendee Management

  • View/edit attendee details
  • Manage partners/guests
  • Handle cancellations
  • Track stay & play

Reporting Tools

  • Registration reports
  • Attendee exports
  • Ballot status tracking
  • Room assignments

Integration Points

WordPress Core

  • Post types API
  • Meta fields API
  • Block editor
  • Admin menus

WooCommerce

  • Data store system
  • Customer records
  • Order integration

Frontend

  • Form rendering
  • Registration flow
  • Profile updates

Data Flow Example

Admin Config -> Form Builder -> Registration Form -> 
Entry Processing -> Attendee Records -> Reports

Security Controls

  • Capability checks
  • Nonce validation
  • Data sanitization
  • Role management
  • Access restrictions