• Resolved quickfox

    (@quickfox)


    Hello,
    Could you tell me in which file I can change the error messages displayed by the plugin?

    Right now, when a user clicks on a link (in their notification email) it displays an error message (if the user is not currently logged in) saying

    “You are not allowed to view this ticket.”

    Which I think is a bit confusing to the user – since it is their ticket and they are allowed to view it – if they log in. I’d like to change the text to

    “Your session has expired. Please log back in to view your ticket.”

    Best Regards,
    Joerg

    https://ww.wp.xz.cn/plugins/awesome-support/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter quickfox

    (@quickfox)

    Found the page. In case anyone else is interested, it is:

    includes/class-notification.php

    Plugin Author julien731

    (@julien731)

    Hi,

    I strongly advise you use the wpas_predefined_notifications filter to change notification messages, otherwise your changes will be erased with the next update.

    Also, the point you’re raising makes sense. I am considering this message in core but one thing bothers me: anyone can land on any ticket’s page if they have the link. In this case, the ticket might not be the visitor’s and telling him that he’s not allowed to see it is accurate.

    Do you have any suggestion on how to mix both cases? You’re not allowed BUT if it’s yours then please log-in?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘changing error message text’ is closed to new replies.