function get_the_modified_author() {}

Retrieve the author who last edited the current post.

Return values

returns:The author’s display name.

Defined filters

  • the_modified_author
    apply_filters('the_modified_author', $last_user->display_name)

Source code

function get_the_modified_author() {

	global $post;

	if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) {

		$last_user = get_userdata($last_id);

		return apply_filters('the_modified_author', $last_user->display_name);




No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: