Hey,
couldn't find anything in the forum, so creating a new thread.
I'm writing a plug-in that connects WP to a professional DAM system. Basically the plug-in takes care of the sync between both systems.
When a user opens the editor and the version in the DAM is more recent, I want to download it and update the WP post accordingly. So when the editor is opened and the user can start editing the post, it must be the updated version from the DAM.
I tried to hook in using the "the_editor_content" filter, which works so far. I also retrieve the post's id, so I can read all information related to that pecific post, but I have no clue how to modify it. Apparently modifying the $post object doesn't do the trick.
How can I make sure, the modified content shows up in the editor?