Skip to content

How to log the status changes of a post #7

@garubi

Description

@garubi

I would like to extend the plugin so that I can log when users change the status of a post (Draft, Pending, Published).
I looked at the filters and the source code but I'm really lost.
WP provides the actions need to trigger it: https://codex.wordpress.org/Post_Status_Transitions but how i can i log them?
Some directions, or an example/mockup of the code would be great.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions