Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to log the status changes of a post #7

Open
garubi opened this issue Jan 15, 2016 · 2 comments
Open

How to log the status changes of a post #7

garubi opened this issue Jan 15, 2016 · 2 comments
Milestone

Comments

@garubi
Copy link

garubi commented Jan 15, 2016

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.

@JJJ
Copy link
Contributor

JJJ commented Jun 1, 2016

Check out WP_User_Activity_Type_Posts::transition_post_status().

Basically, I'd appreciate a pull request for the different transition types, so WP User Activity can include support for them out of the box.

Right now, create and future are a little greedy.

@JJJ JJJ added this to the 2.0.0 milestone Sep 7, 2016
@JJJ JJJ added the enhancement label Sep 7, 2016
@JJJ JJJ modified the milestones: 2.0.0, 2.1.0 Jan 15, 2018
@JJJ
Copy link
Contributor

JJJ commented Jan 15, 2018

Bumping to 2.1.0.

@JJJ JJJ modified the milestones: 2.1.0, 2.2.0, 2.3.0 Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants