Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Does anyone know how to get the name of the user who last updated a post/page please? (Not the post author). I can see that it is visible in the post/page revisions but don't know how to access it.

Any ideas/help greatly appreciated.

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

You can use

the_modified_author();

See https://codex.wordpress.org/Function_Reference/the_modified_author

<p>This post was last modified by <?php the_modified_author(); ?></p>
share|improve this answer
    
Brilliant thanks : ) –  sta777 Dec 19 '12 at 10:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.