earthtojeremy
Member
Posted 4 months 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.
agelonwl
Member
Posted 4 months 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
earthtojeremy
Member
Posted 4 months 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.
Thanks!
earthtojeremy
Member
Posted 4 months 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.
earthtojeremy
Member
Posted 4 months 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.
we'll fix the duplication issue, i agree with the redirect to the new event if possible.