• Resolved niel

    (@nielfernandez)


    Hello WordPress People Good Day!, I hope all are alright Stay home. ??
    .
    .
    I need help by the way Is there any way to display author name who edited other author post?
    .
    .
    For instance author1 PostTitle1,
    Then author2 edited PostTitle1 which posted by author1
    .
    .
    The main goals is when the other author edit the post which they are not the owned of the post is there anyway to determine who is that author edit that post?
    .
    .
    For Instance
    PostTitle1 Posted by author1 (edited by author2), somethng like that.
    .
    Every post that will edit by other author possible to be determine?
    What is WordPress function that I need to know…
    Thanks for helping in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Each revision saved includes the user ID of who made the change. Using the post’s ID, use get_posts() where the post_parent is the post ID and post_type is “revision”. Specify 'posts_per_page' => 1, to get only the most recent revision. The post_author property of that revision will be the user ID of who last edited the post.

    Thread Starter niel

    (@nielfernandez)

    Thanks It was done with WP function called author_modified();

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display author name WordPress Post’ is closed to new replies.