Is there an easy way to get the context of how a post (as well as custom post types) got created and/or updated? There are two paths I can think of:
- Via the admin dashboard
- Via the REST API
Is there a way I can find out whether it was via the admin dashboard, the API, or some other path?
I know there is the the get_current_screen()
method, but I'm not sure if that is a good place to start or not.