• Resolved Pel

    (@pelstudio)


    It used to be possible to change the response messages that are displayed on a form via es_subbox() by setting values in the es_widget_page_notices object.

    Is this no longer possible? The default messages are not appropriate for our organization and we’d like to override.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Malay Ladu

    (@malayladu)

    Hi,

    We have changed lots of things with new version of ES (4.x) and the settings which you used to use earlier which may or may not available.

    But, you can always change the message but you need to do changes at the different places. Though we don’t recommend to change directly into the code because it will be overwritten by the updates.

    If you still wants to make changes you can change it from ‘get_message’ function in email-subscribers/includes/admin/class-es-handle-subscription.php file.

    Hope that helps.

    Thread Starter Pel

    (@pelstudio)

    We understand updating the plugin with new functionality but having so many breaking changes that aren’t backwards compatible is frustrating.

    Thanks for your suggestions re: how to change messages but as you mentioned, directly altering a plugin is terrible practice as the changes will be overridden by subsequent updates.

    Could you please add a filter so this can be done in a sustainable way? I’m sure there are many people who will want to change the messages as language is such a subjective thing.

    I think this would do the trick before the return statements:

    $messages = apply_filters( “es_subscription_messages”, $messages );

    Plugin Contributor Malay Ladu

    (@malayladu)

    Hi,

    Yes..Filter is a good practice. We will add the filter in one of the upcoming version of Email Subscribers so you can use the filter and change the message.

    Thread Starter Pel

    (@pelstudio)

    Hi, has this filter been added?

    Plugin Contributor Malay Ladu

    (@malayladu)

    Hi,

    Sorry. This filter is not added in ES 4.0.18.

    It will be added in next release of Email Subscribers.

    We will update you once it will be added.

    Plugin Contributor Malay Ladu

    (@malayladu)

    Hi,

    Just want to update you that this filter has been added into ES 4.1

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ajax Response Messages’ is closed to new replies.