I have a plugin that sends data to a server as part of a
transition_post_status action. The server sends a response each time. I want to keep a log of these responses (permanently) that I can display in a table to the user somewhere, like so:
Date | Response ------------------ 1/1 | OK 1/2 | Status code 2
What's the best way to do this? Should I create a new database table, or is there a more convenient way?
Some background: I've tried using the WP_Logging() class, but it doesn't seem to work correctly when called through an action.