You are viewing an old revision of this post, from March 15, 2015 @ 13:19:52. See below for differences between this version and the current revision.

Display the last editor of a post

[php]//------------------------------------------------// // Display the last editor of a post //------------------------------------------------// $post_ID = get_the_ID(); if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { $last_user = get_userdata($last_id); printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); }; [/php]

Revisions

  • March 15, 2015 @ 13:19:52 [Current Revision] by PeterLugg
  • March 15, 2015 @ 13:19:52 by PeterLugg

Revision Differences

There are no differences between the March 15, 2015 @ 13:19:52 revision and the current revision. (Maybe only post meta information was changed.)

Tags: ,

No comments yet.

Leave a Reply