I am trying to build an automization flow for a WordPress photo blog, and for that I want to add text to both the content and the excerpt of a post once it's saved. I managed to hook my plugin to the save event, and now I need to add the text to both fields.
Is there an API for that or do I need to write into the database? how do I do that?
I want to keep it as compatible with the API as possible, so I can upgrade WP later with no problem.
I am quite new to writing plugins, but I do have programming experience.