• I don’t like the default name a ticket has. In Dutch it is “standaard ticket” In English I presume “Default ticket”. I would like to change that to something more meaningful to us. How can I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Adding the following code snippet should allow you to change the default ticket name:

    add_action('em_ticket', 'my_em_ticket');
    function my_em_ticket($EM_Ticket) {
    $EM_Ticket->ticket_name = "My Standard Ticket";
    }

    You can use the Code Snippets plugin to add this code snippet.

    Thread Starter KramBie

    (@krambie)

    I must have missed something. Steps I did:
    1. Add the Code Snippets plug in.
    2. Added the few lines of code into Code Snippets.
    Unfortunate that wasn’t working.

    To be sue I also added a line $EM_Ticket->name = "My Standard Ticket2"; but that wasn’t working either. Must I configure something the EventManager listens to the Code Snippets plugin or something like that?

    BTW: If this is hard to solve, leave it. This is just a nice to have thing. You already helped me a lot so far.

    I realize now that add_action won’t work to change the default ticket name.

    You can use a translation plugin to change the translation of “Standard Ticket” to anything you want. I use the “Loco Translate” plugin.

    Thread Starter KramBie

    (@krambie)

    Adding this plugin is a bit too much for just changing word especially when it is jut a nice to have modification. But I keep this in mind if there are more translations needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.