MDJM Event Management is exactly that, an Event Management tool, however you may choose to use a different term than Event and in doing so, you will want your new term used throughout the admin and front end (Client Zone) pages rather than seeing the term Event.
Let’s assume that rather than using the term Event, your business uses Party and you want Party or Parties to be used throughout your website.
You can accomplish this by adding the following code into your themes functions.php file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
/** * Replaces the term Event with the selected singular and plural phrases. * * @param array $labels Existing terms. * @return array $labels Filtered terms. */ function mdjm_change_event_name( $labels ) { $labels = array( 'singular' => __( 'Party', 'your-domain' ), // Replace with your preferred singular name 'plural' => __( 'Parties', 'your-domain' ) // Replace with your preferred plural name ); return $labels; } // mdjm_change_event_name add_filter( 'mdjm_default_events_name', 'mdjm_change_event_name' ); |