Post publishing message

Home Forums Calendar Products Events Calendar PRO Post publishing message

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1015897
    Luke
    Participant

    Hi I have used the code suggested to replace all instances of Event and Events to something else, in my case I am using Transfer and Transfers. However when I publish a new Event/Transfer the post publishing message that appears is “Event published. View transfer”

    Obviously this is less than ideal so is there anyway to additionally change that instance of Event and replace it with a custom word.

    #1016286
    Brook
    Participant

    Howdy Luke,

    Thank you for reporting this. That’s not something we have notices before, but we would be keen to fix it in a future version.

    If you do not want to wait until then, you can fix it now. The string is located in public_html/wp-content/plugins/the-events-calendar/src/Tribe/Main.php:1327 and is as follows:

    Event published. <a href="%1$s">View %2$s</a>

    Using a snippet like the one in this tutorial, you could alter it to something else. Tutorial: Change the wording of any bit of text or string. In this case your custrom array would need to be something like this:

    $custom_text = array(
    'Event published. <a href="%1$s">View %2$s</a>' => 'Transfer published. <a href="%1$s">View %2$s</a>',
    );

    Does that all make sense?

    Cheers!

    – Brook

    #1019662
    Luke
    Participant

    Thanks Brook, I altered the Main.php file and it worked great. I’ll keep an eye out for it in future releases.

    #1020009
    Brook
    Participant

    Excellent! Thanks Luke for getting back, and again for reporting this.

    Cheers!

    – Brook

    #1075251
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Post publishing message’ is closed to new replies.