=== MDJM Event Management === Contributors: mdjm Tags: Event Planner, DJ Booking System, Event Booking System, CRM, DJ Manager Requires at least: 6.0 Tested up to: 7.1 Requires PHP: 8.0 Stable tag: 1.7.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html MDJM Event Management automates event processes, streamlining from enquiries to completion. Add employees, clients, and create events seamlessly. == Description == MDJM Event Management is the solution for Event based businesses who wish to automate their processes and enable clients to manage events. It is an event planning solution built specifically for websites running on WordPress ensuring the users are familiar with the Administration settings and look and feel. MDJM Event Management allows you to manage your events from enquiry stage through to completion. Add your employees, your clients and then create an event. **Key Features** * No event or employee restrictions * Multi employee aware * Record all transactions * Detailed reporting * Granular permissions for employee roles * Showcase your business products * Auto calculate and apply travel costs to your events * A front-end client portal (Client Zone) where your clients can manage their events * Client playlists with guest access * Digital Contract Signing * Automated emails * Track whether or not client emails have been opened * Create event packages for simplistic price assignment * Track the most successful marketing strategies for your business * Automate daily and weekly tasks * Create an unlimited number of custom email and contract templates * Developer friendly * A number of [plugin extensions](https://mdjm.co.uk/extensions/ "MDJM Add-ons") are available to further enhance the automation including Contact Forms, Payment Gateways and Calendar Sync **Communication with MDJM Event Management Servers** This plugin will only communicate with MDJM Event Management servers when paid MDJM extensions are installed for the purpose of license checks and providing updates to the paid extensions only. This communication does not happen when there are no paid MDJM extensions installed. == Installation == **Automated Installation** 1. Login to your WordPress administration screen and select "Plugins" -> "Add New" from the menu 1. Enter "MDJM Event Management" into the Search Plugins text box and hit Enter 1. Click "Install Now" within the MDJM Event Management plugin box 1. Activate the plugin once installation is completed **Manual Installation** Once you have downloaded the plugin zip file, follow these simple instructions to get going; 1. Login to your WordPress administration screen and select the "Plugins" -> "Add New" from the menu 1. Select "Upload Plugin" from the top of the main page 1. Click "Choose File" and select the mobile-dj-manager.zip file you downloaded 1. Click "Install Now" 1. Once installation has finished, select "Activate Plugin" 1. Once activation has completed, click the "Settings" link under the MDJM Event Management plugin 1. Installation has now completed. Next you need to [configure MDJM](https://mdjm.co.uk/docs/installation/ "MDJM Initial Configuration"). == Frequently Asked Questions == = Is any support provided? = Support can be obtained via our online [Support Pages](https://mdjm.co.uk/support/ "MDJM Support"). Support is provided on a best-endeavours basis. = Is there a Pro version with additional features? = Extensions are available to enhance the plugin via our [Extension Store](https://mdjm.co.uk/extensions/ "MDJM Extensions") == Screenshots == 1. An overview of the MDJM Event Management Dashboard screen as seen by an Administrator when they are logged into the WordPress Admin UI 2. The Dashboard as seen by an employee when they are logged in 3. A view of the settings page (not seen by non-admins) 4. Permissions can be set to determine what an employee can see/do within the application 5. Event listing within the Admin UI 6. The client's homepage on the website front end 7. The playlist feature as utilised by clients == Changelog == = 1.7.9 = **Security**: Fixes for three reported vulnerabilities, plus hardening of related user-management code. All users should update. * **CVE-2026-88799** – Account takeover (IDOR) in the client profile update handler. The handler now requires a logged-in user who either owns the profile or passes WordPress's `edit_user` check for that specific user, and the unauthenticated AJAX hook has been removed. Reported by Morato Antoine. * **CVE-2026-88800** – Unauthenticated role deletion. Role deletion now only runs in the admin, requires a nonce and `manage_options` before reading any input, uses one sanitized list for both the "users still assigned" guard and the deletion, and can only remove custom MDJM (`mdjm-*`) roles. Core WordPress roles and built-in MDJM roles can never be deleted. Reported by Abdullah Kareem (cyberkareem). * **CVE-2026-88801** – Stored XSS via role creation. Role names have HTML stripped before saving, MDJM's role dropdown escapes its output, and a one-time routine cleans any role names containing HTML that were stored before this release. Reported by Ryan Fabella. * **Hardening**: Bulk delete and active/inactive actions on the Clients and Employees screens now require a nonce and the relevant MDJM permission. They can no longer target administrators, the current user, or users outside the list's own role. The bulk "change role" action can no longer change an administrator's role. **Security (internal audit)**: the following were found and fixed during a full review of the plugin. * **Critical – REST API authentication bypass.** An API key was matched against any user meta key, and a user without a secret key accepted a token anyone could compute. Unauthenticated requests could read events and client details as an administrator. Keys must now be genuine MDJM public keys with a secret, and the client and employee endpoints check the key owner's permissions. * **Critical – front-end action dispatcher.** `?mdjm_action=` could trigger any internal MDJM hook without logging in, including marking payments as complete and exporting client data. Only the intended front-end actions are now dispatched. Extensions can add theirs with the `mdjm_allowed_front_actions` filter. * **High – privilege escalation when adding employees.** The new employee's role was taken from the form unchecked, so an administrator could be created. Only MDJM roles can now be assigned, and the "manage employees" permission is required. * **High – automated tasks could be run without logging in** via `admin-post.php`, sending emails to clients. The admin action dispatcher now requires a logged-in user, and task actions require a nonce and MDJM admin rights. * **High – email tracking pixel could change the status of any post**, unpublishing pages and transactions. It now only acts on email history records. * **Medium – clients could accept another client's quote, sign another client's contract, or edit another event's playlist.** Ownership is now checked. * **Medium – batch exports were written to a guessable public file** (`uploads/mdjm-clients.csv`) and could be built from an arbitrary class name. Export files now have unguessable names, legacy files are removed, and only MDJM export classes can be used. * **Medium – nonce-only admin actions** (send email, pay employees, playlist add/remove/print/email/download) now also check the relevant MDJM permission. `mdjm_ajax_nonce` is now only given to staff. * **Fix** – settings import and export always failed their nonce check and now work again. = 1.7.8.9 = **Security**: Comprehensive PHPCS/WordPress coding standards audit — added nonce verification to 25 admin AJAX handlers, fixed API nonce check (was calling wrong function), added capability checks to role management handlers, fixed unescaped output in templates and AJAX responses, replaced `json_encode` with `wp_json_encode` and `strip_tags` with `wp_strip_all_tags` plugin-wide, added PHPCS configuration to exclude third-party libraries = 1.7.8.8 = **Security**: Fixed account takeover vulnerability — any logged-in user could overwrite another user's password and email via the client profile update handler (reported by Morato Antoine) **Security**: Fixed unauthenticated role deletion — any visitor could remove any WordPress role including administrator, and a key/value mismatch in the guard could be exploited to bypass the 'role has users' protection (reported by Abdullah Kareem) **Security**: Fixed stored XSS via role creation — an authenticated user could inject script into the role display name which executed in administrator browsers (reported by Ryan Fabella) = 1.7.8.7 = **Fix**: Contract signing no longer requires a password; clients confirm their identity with their first and last name and IP address = 1.7.8.6 = **Fix**: CC Email Recipient field now appears in Client Details metabox and toggles with the Disable Emails checkbox **Fix**: Disable Emails checkbox no longer reverts to ticked after being unchecked and saved **Fix**: Contract signing password check now works when the client arrives via a direct email link without an active session = 1.7.8.5 = **Security**: Fixed a privilege escalation vulnerability where the role permissions and employee role-change handlers were missing capability checks and nonce verification, and did not validate submitted role values against an allow-list. = 1.7.8.4 = **Fix**: Bug fix when uploading certain file types **FIx**: Emails now sending okay = 1.7.8.3 = **Fix**: Bug fixes on playlist and login screen = 1.7.8.2 = **Fix**: Patch fix when deleting a custom field and not logged in. = 1.7.8.1 = **Fix**: Disable Email switch now working if turned on. **Fix**: Timeline fields now moveable. **Fix**: Some "This Year" Reporting functions. **Enhancement**: Added an "Events" report. **Enhancement**: Added an "Account Creation Email" switch when manually adding a client. = 1.7.8 = **Fix**: Download as .txt now working as expected. **Fix**: Removed the unneccessary '-' from the front of the currency symbol. **Enhancement**: Pricing for Extensions now pulls from MDJM website. **Enhancement**: Dashboard now shows next 5 events. = 1.7.7 = **New**: Wedding Timeline - Must have Dynamic Contact Forms 2.3.6 installed. = 1.7.6.3 = **Fix**: Password Resets from MDJM Portal **Fix**: Disable Email Switch **Enhancement**: Changed Tick Box to I/O Switch **Enhancement**: More PHP8.3 Enhancements = 1.7.6.2 = **Fix**: PHP 8.3 fixes **Enhancement**: Press the Availabilty button and it tells you who is available for that event = 1.7.6.1 = PHP 8.3 Fixes Cosmetic Changes = 1.7.6 = **Enhancement**: Playlist Artist & Song art pulled from Discogs (Needs an API) **Enhancement**: If you have Spotify Playlist Converter, it'll show you what URI is used in the Job Sheet **Enhancement**: More permissions tweaked **Enhancement**: New Logic that playlist is only shown once the event is marked as "confirmed" **Fix**: Security XSS Fix = 1.7.5.6 = **Fix:** Security Fixes **Enhancement:** More friendly Extensions Page layout = 1.7.5.5 = **Enhancement:** Reference Prefix for Bank Transfer payments **Fix:** Fix for client notes not going on new line **Fix:** Fix for DJ Wage showing all the time **Fix:** Security Issues = 1.7.5.3 = Security Fixes - Important Update = 1.7.5.2 = **Enhancement:** Added Artist notes to the job sheet **Enhancement:** Added full venue details to the job sheet **Enhancement:** Added the ability to download the playlist as text or CSV file. = 1.7.5.1 = **Fix:** Fixed the Playlist content sending in emails = 1.7.5 = **Enhancement:** Added a "Back to Event List" button **Enhancement:** Added "Employee Wage" shortcode. **Enhancement:** Code change to allow Spotify Playlist Converter = 1.7.4.2 = **Fix**: Emails not sending on status change = 1.7.4.1 = Lots of bug fixes and enhancements = 1.7.4 = **Enhancement**: Added customisable page excerpts for Client Portal pages. = 1.7.3 = **Fix**: Travel cost now working as expected. = 1.7.1 = **Enhancement**: Changed the Event Status colours - can be customised too. **Enhancement**: Changed the Settings Layout **Enhancement**: Added "Remaining Balance due date" as a {custom_tag} **Enhancement**: Added QR Code Generator (Optional in Settings) to display a QR Code for Guest Playlist access. **Fix**: Fixed the travel pricing, distance and timing - users need to use their own API for this. **Fix**: Fixed the Playlist Global Setting for new events. **Fix**: Compliance Documents now get the Save As dialog when downloading. = 1.7 = PHP 8 Ready Features: - Email Client button now hides if the event status is set to "unattended enquiry" - Finances Overview now in a separate Metabox. Fixes: - Event Details link from Event Summary screen now showing for everyone - various _mdjm_** tags now displaying correctly = 1.6.5 = Features: - Added the Balance Remaining amount to the deposit/balance paid metabox. - Got ready for Mailchimp release Fixes: - Display "Make Payment" button if BACS option is only selected. = 1.6.4 = Features: - Added functionality of clients being able to download PLI and/or PAT Certificates from the Client Area. - Changed the Client Portal button colour to Hex value Fixes: - Position of the login form now showing in correct place = 1.6.3 = Enhancements: - CSS Change on settings page to make it easier to read - Easier to determine the email and online quote templates Fixes: - File upload sending via email - Time in Event settings = 1.6.2 = Few tweaks to code and few more security fixes. = 1.6 = Enhancements: - Added End Time and Guest Playlist URL to the Event Details page - Added the option of inputting BACS details and displaying them front end on the payments page. - Show an error if end time is set before the start time. - Changed the CSS for the Print/Email Event button - Made Event Status a sortable column. - Add Venue name to the main events listing page. - Added 7 new colours to the Action Button in the client zone - Black, White, Purple, Pink, Yellow, Light Grey and Dark Grey. - Added client phone number to the event details printout. - Changed the playlist page to print full event details to hand out to staff - Allow the support of the new Stripe and Reporting - Added a "next year" filter option. - Added a 5 year buffer to the current year on filtering. - Changed past date to -7 years. Fixes: - Deleting clients in bulk was throwing a fatal error. Fix applied. - Force jQuery Datepicker to override Bootstrap Datepicker - Employee Availability Calendar on the back end. - jQuery for the front-end Availability Checker. - Option to unload Font Awesome from plugin settings, if needed. - Fixed bug in playlist manager which caused playlists to close. - Fixed missed icons - Fixed addons calculation **For Full Changelog, please visit www.mdjm.co.uk/full-changelog** == Paid extensions installation, licensing and updates == All paid extensions for MDJM Event Management must be installed manually, see [Installing Extensions](https://mdjm.co.uk/articles/installing-add-ons/) for more info. License and update checks for paid extensions are only run when there are paid extensions for MDJM Event Management installed.