Skip to main content

Configuration

All plugin settings are managed from WordPress Admin → Settings → Association App. The settings page is a React SPA that saves values to the WordPress wp_options table.


Settings Tabs

General

Core organisation identity displayed in the mobile app.

FieldOption keyDescription
Organisation Nameassociation_nameYour association's display name
Tagline / Subtitleassociation_subtitleShort description shown in the app
Admin Emailassociation_admin_emailContact address for app-generated enquiries
Logoassociation_logoURL of your logo image (uploaded via Media Library)
Bannerassociation_bannerURL of a banner/hero image
App Iconassociation_iconURL of the app icon image
Aboutassociation_aboutURL of your About page (internal or external)
Terms of Serviceassociation_termsURL of your Terms page
Privacy Policyassociation_privacyURL of your Privacy Policy page
Contactassociation_contactURL of your Contact page

Branding / Colours

Controls the colour theme delivered to the mobile app.

FieldOption keyDefault
Primary Colourassociation_primary_color#D6386B
Primary Shade 1association_primary_color_shade1#F9D1DE
Primary Shade 2association_primary_color_shade2#FFEDF3
Secondary Colourassociation_secondary_color#170645
Secondary Shade 1association_secondary_color_shade1#241156
Secondary Shade 2association_secondary_color_shade2#403461
Enable custom text colourassociation_color_text_enabledfalse
Primary text colourassociation_primary_color_text(derived)
Secondary text colourassociation_secondary_color_text(derived)

Colours should be entered as hex values (e.g. #D6386B). The mobile app reads these at login and applies them throughout the UI.

Sync

Controls the sync integration used by the Association App Platform v2 Connector.

FieldOption keyDescription
Sync API Key_2dc_assoc_sync_api_keySecret key authorising the platform to pull data from WordPress

Generating the Sync API Key:

  1. Go to Settings → Association App → Sync
  2. Click Generate Key
  3. Copy the generated value — this is the key you enter in the Association App dashboard Connector setup wizard
  4. Click Save

The key is stored hashed. If you regenerate it, the old key immediately stops working — update the Connector in the dashboard immediately after.


Custom Post Types

The plugin registers five custom post types. Content is managed through the standard WordPress editor for each type.

App: Events (event)

Meta fieldKeyDescription
Start date/time_2dc_assoc_event_date_time_startUnix timestamp (ms)
End date/time_2dc_assoc_event_date_time_endUnix timestamp (ms)
All day_2dc_assoc_event_all_dayBoolean
Location address_2dc_assoc_event_location_addressStreet address
City_2dc_assoc_event_location_cityCity
State_2dc_assoc_event_location_stateState
Postcode_2dc_assoc_event_location_zip_codePostcode
Cost_2dc_assoc_event_costPrice
Registration URL_2dc_assoc_event_urlExternal registration link
Virtual_2dc_assoc_event_is_virtualBoolean — online event
Attendees_2dc_assoc_event_attendingCount

App: Conferences (conference)

Same meta fields as Events. The eventType returned in the API is CONFERENCE.

App: Documents (document)

Meta fieldKeyDescription
File URL_2dc_assoc_document_fileDirect URL to the uploaded file

Documents are categorised using the Document Folder taxonomy (document-folder), which is hierarchical (supports parent/child folders).

App: Companies (company)

Meta fieldKeyDescription
Website_2dc_assoc_company_urlCompany website
Phone_2dc_assoc_company_phonePhone number
Email_2dc_assoc_company_emailContact email

App: Notifications (notification)

Used for push notifications. Created via the WordPress admin or programmatically. The plugin sends the notification content via Firebase Cloud Messaging on publish.


Custom User Roles

Two custom roles are added to WordPress:

RoleSlugPurpose
Association Memberassociation-memberActive members with app access
Pending Reviewpending-reviewMembers awaiting admin approval — blocked from login

Member Profile Fields

These custom fields appear on the WordPress user profile screen and are stored as user meta:

FieldMeta keyDescription
Mobile numbermobile_numberPhone number
Job titlejob_titleJob title
Company / Organisationcompany_organizationEmployer
BirthdaybirthdayDate of birth
Street addressstreet_addressAddress line
CitycityCity
PostcodezipPostcode
Certifiedis_certifiedBoolean flag
Renewal daterenewal_dateMembership renewal date
Exclude from listingis_exclude_listingHides member from the directory
Created viacreated_viaRecords how the account was created

Firebase Configuration

Firebase is used for push notifications. Configuration is stored in the plugin and requires:

  1. A Firebase project with Cloud Messaging enabled
  2. The Server Key from Firebase Console → Project Settings → Cloud Messaging

The server key is used by the plugin's notification system when dispatching push notifications. Enter it in the plugin settings or directly in wp-config.php:

define('_2DC_ASSOC_FIREBASE_SERVER_KEY', 'your-firebase-server-key');

JWT Configuration (wp-config.php)

As noted in the installation guide, the JWT secret must be set in wp-config.php:

define('JWT_AUTH_SECRET_KEY', 'your-long-random-secret');
define('JWT_AUTH_CORS_ENABLE', true);

The plugin extends the JWT Authentication plugin to add:

  • Refresh tokens — issued alongside the access token at login
  • Custom expiry — configurable via the jwt_auth_expire filter
  • Login deep links — JWT issued for passwordless deep-link login flows

Disabling the REST API (Post-Migration)

After migrating to the Association App Platform v2 and completing the cutover, you can disable all plugin REST API endpoints:

  1. Go to Settings → Association App → Sync
  2. Toggle Disable REST API to ON
  3. Click Save

This stops the mobile app and sync connector from being able to reach the WordPress API without deactivating the plugin entirely.