When modifying a Sportspress (plugin) function to handle specific bulk actions, I call several wordpress functions which are the source of the issue.
Briefly, I want to update an event title (which is the post title) depending on the bulk action done (which updates the event status which is a custom field from the post view). I also want to keep the original publication date and that is where I don’t understand the behaviour. Here is my code. Like this, the post title is updated as expected. When I uncomment lines 117 and 132, the post keeps its original post date but its title is not updated as expected anymore.
Can you notice the appearing conflict between those two features ?
Thanks in advance for your answer,