[Plugin: Events Manager] Duplicates - keeping Featured Image & Category settings (6 posts)

  1. earthtojeremy
    Posted 4 years ago #

    I'm using the WordPress Events Manager (this one: http://wp-events-plugin.com) v. 5.0.42 (updated through the backend from the previous version).

    Is there a way to make it so that the Featured Image and Category settings carry over when making duplicates of an event? I'm listing movie showtimes and it's annoying having to set these two attributes each time. I can edit the code if necessary, just looking for some hints.

  2. agelonwl
    Posted 4 years ago #

    As of now its working like that but it could be an addition to the future release however if you can code that's great and share it with us.

    about the code, the function that's responsible for that is located at classes/em-event.php - function duplicate() or you can use hooks/filter

  3. earthtojeremy
    Posted 4 years ago #

    Found the code where you described:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Still trying to decipher it. If anyone has any ideas let me know.


  4. earthtojeremy
    Posted 4 years ago #

    ALSO, the last version had it so that if you clicked duplicate, it automatically loaded the editing page for the new duplicated event. Now it just refreshes the list with the new duplicate in it, which is a little confusing when you're trying to pick out the newest copy in a list of duplicates with the same title. Is there a way to put this back in, or did I overlook a disabled option in the settings somewhere?

    Thanks again.

  5. earthtojeremy
    Posted 4 years ago #

    AND ONE MORE THING, can I change the code so that the times displayed in the events list of the admin section are in 12-hour time, not 24-hour? Can anyone at least direct me to a file/line #?

    Thanks in advance.

  6. Marcus
    NetWebLogic Support
    Posted 4 years ago #

    we'll fix the duplication issue, i agree with the redirect to the new event if possible.

Topic Closed

This topic has been closed to new replies.

About this Topic