Making WordPress.org

Changeset 6944


Ignore:
Timestamp:
03/28/2018 12:42:56 AM (8 years ago)
Author:
coreymckrill
Message:

WordCamp tickets: Add mandatory fields to registration form

This adds three fields to the ticket registration form:

  • A question about life-threatening allergies. The camp organizer will receive an email notification when the answer is "yes".
  • A question about special accommodations, e.g. sign language interpreter. The camp organizer will receive an email notification when the answer is "yes".
  • A checkbox indicating agreement to follow the event Code of Conduct. A ticket cannot be purchased/obtained if this box is not checked.
Location:
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php

    r6846 r6944  
    3030add_action( 'init',                                          __NAMESPACE__ . '\camptix_debug',                    9 ); // CampTix does this at 10.
    3131add_filter( 'camptix_default_addons',                        __NAMESPACE__ . '\load_addons'                         );
     32add_action( 'camptix_load_addons',                           __NAMESPACE__ . '\load_custom_addons',              11 );
    3233add_filter( 'camptix_capabilities',                          __NAMESPACE__ . '\modify_capabilities'                 );
    3334add_filter( 'camptix_default_options',                       __NAMESPACE__ . '\modify_default_options'              );
     
    544545
    545546/**
     547 * WordCamp-specific addons.
     548 */
     549function load_custom_addons() {
     550    // Allergy field
     551    require_once( __DIR__ . '/addons/allergy.php' );
     552    // Accommodations field
     553    require_once( __DIR__ . '/addons/accommodations.php' );
     554    // Code of Conduct field
     555    require_once( __DIR__ . '/addons/code-of-conduct.php' );
     556}
     557
     558/**
    546559 * Modify CampTix's default capabilities
    547560 */
Note: See TracChangeset for help on using the changeset viewer.