get_the_modified_author

Definition:
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);

	}

}

1837

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

Leave a comment