Automatically add some as an author if they make an edit to a post #1225
Replies: 8 comments
-
@muhammedmagdi Here's my thinking here. If this settings is enabled, anyone who has created a revision for a post is added as an Author. If a user is stored in wp_posts as the author of a revision, they are added. |
Beta Was this translation helpful? Give feedback.
-
So, just to make sure I understand correctly, if I am the current post author of a specific post and John had created a revision for it, should he be added automatically to the post authors of this post. So when I open this post, I should see 2 authors of it, me and him? What if I want to delete him, every time the automatic trigger function will add him. |
Beta Was this translation helpful? Give feedback.
-
@muhammedmagdi Yes, 100% correct Can you explain the delete question? I think it should be possible to manually remove these authors |
Beta Was this translation helpful? Give feedback.
-
If I deleted John and the trigger function ( that adds an author if he has published a revision ) added him again. So when should this trigger function work? It will check every time for the users that have published any revision and add them. |
Beta Was this translation helpful? Give feedback.
-
Good questions @muhammedmagdi. Would it be easier in the first version if they can not be removed? Or should the trigger run every time a revision is saved? |
Beta Was this translation helpful? Give feedback.
-
I am not sure, I am thinking for a way to make John added automatically but if the admin deleted him, this function trigger execution shouldn't work any more at this post. Just my thoughts and still thinking about it. |
Beta Was this translation helpful? Give feedback.
-
@muhammedmagdi I'm OK with moving on to the next task and coming back to this. Would that help? |
Beta Was this translation helpful? Give feedback.
-
That would be great. Just please let me know the next task. |
Beta Was this translation helpful? Give feedback.
-
This is a good idea from a customer:
Essentially, this is would allow anyone who contributes to a post to automatically get credit.
Beta Was this translation helpful? Give feedback.
All reactions