Menu Close Menu
Menu
  • 0
    • Number of items in basket: 0

      • Your basket is empty.
      • Total: £0.00
      • Checkout
  • Add-ons
  • Support
    • Documentation
    • Report a Bug
    • Submit a Support Ticket
    • Get Involved
    • Terms and Conditions
  • Your Account
    • Register
  • Blog
  • Contact Us

Renaming Event Status Labels

Renaming Event Status Labels

MDJM provides a number of hooks and filters which allow for more advanced customisation that is not available within the general plugin settings.

Event status labels are no exception to this.

If you wish to create a new event status, you can review this article. Otherwise, below we will demonstrate how to change the event status labels.

The filters of interest here are;

mdjm_event_unattended_status
mdjm_event_enquiry_status
mdjm_event_approved_status
mdjm_event_contract_status
mdjm_event_completed_status
mdjm_event_cancelled_status
mdjm_event_rejected_status
mdjm_event_failed_status

Use the relevant hook for the status label you wish to change.

Example

Let’s say you wish to change the labels for the Enquiry status. By default these are Enquiry for the singular label and Enquiries for the plural label. Let’s change those to Inquiry and Inquiries. Here is the code you would need to add to your custom plugin, or your [child] theme functions.php file…

function mdjm_example_rename_enquiry_status_labels( $args ) {
    $args['label']       = __( 'Inquiry', 'mobile-dj-manager' );
    $args['plural']      = __( 'Inquiries', 'mobile-dj-manager' );
    $args['label_count'] =_n_noop( 'Inquiry <span class="count">(%s)</span>', 'Inquiries <span class="count">(%s)</span>', 'mobile-dj-manager' );

    return $args;
}
add_filter( 'mdjm_event_enquiry_status', 'mdjm_example_rename_enquiry_status_labels' );

 

Advanced Hooks Events Last updated: April 20, 2017

Published by MDJM

Posts by MDJM Visit Website

Post navigation

Previous

Google Calendar Sync

Next

Why Create Dedicated Forms for Widgets

Document Categories

  • Configuration
    • Advanced
  • Extensions
    • Dynamic Contact Forms
    • Google Calendar Sync
    • PayPal Standard
  • FAQs
  • Getting Started
  • Hooks
  • REST API

Latest Posts

  • PayPal Payment Method Discontinued
  • Enhancements! Enhancements! Enhancements!
  • Black Friday Offers
  • Stripe Payments Add-on

Social Links

  • Like our Facebook Page
  • Join our Facebook Group
  • Fork us on GitHub

Latest news & offers

Subscribe now to receive all the latest news, thoughts and offers from MDJM Event Management.
New subscribers will receive 15% off their first purchase.

© 2021 MDJM Event Management. All rights reserved.
  • Shop
  • Support
  • Account
  • Contact Us
  • Testimonials
  • Privacy Policy
  • Terms