Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Sorry, there’s no option for that out-of-the-box – though it might be possible with custom coding.

    Thread Starter rosie_pb

    (@rosie_pb)

    Thanks for the reply. That’s a shame it isn’t set as standard, as users can edit content using front end forms for both Events and Locations. Could this be consider as an update to the plugin?

    If not, do you (or anyone else) have any tips or advice on how this might be achieved with custom coding?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to hook into em_location_save filter and then add your mailing code. for reference, you can see this under events-manager/classes/em-location.php

    Thread Starter rosie_pb

    (@rosie_pb)

    Thanks angelo. Apologies, I’m not an expert in PHP unfortunately. Would I be able to copy a section of the events mailing code and adjust it to work for locations within the em-location.php file?

    Doing it that way is highly likely to lead to the plugin breaking – the changes would also be lost on a plugin upgrade.

    The best way to do these kind of things is by using filters:
    http://wp-events-plugin.com/tutorials/overriding-event-page-content-with-filters/

    Thread Starter rosie_pb

    (@rosie_pb)

    OK thanks, I will try to create a solution using the em-content filter.

    Would it be correct to add the filter to classes/em-location-post-admin.php as the submission email code for events looks to be in classes/em-event-post-admin.php? Or would it be classes/em-location.php as angelo mentioned? (I will save the amended file to my theme templates folder in order not to overwrite the original.)

    Thanks for your patience!

    No problem 🙂

    Filters need to be added to the functions.php of your theme. If you’re not familiar with how they work this might help:

    https://pippinsplugins.com/a-quick-introduction-to-using-filters/

    Thread Starter rosie_pb

    (@rosie_pb)

    Thanks, that makes a bit more sense! I’m a filter and hooks newbie so I will seek help and look up a few tutorials.

    No problem. It takes a bit to get your head around the concept, but it makes things a lot easier / safer.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Location Submission Emails’ is closed to new replies.