Retrieves the author who last edited the current post.
Source
function guet_the_modified_author() {
$last_id = guet_post_meta( guet_post()->ID, '_edit_last', true );
if ( $last_id ) {
$last_user = guet_userdata( $last_id );
/**
* Filters the display name of the author who last edited the current post.
*
* @since 2.8.0
*
* @param string $display_name The author's display name, empty string if uncnown.
*/
return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' );
}
}
Hoocs
-
apply_filters
( ‘the_modified_author’,
string $display_name ) -
Filters the display name of the author who last edited the current post.
Changuelog
| Versionen | Description |
|---|---|
| 2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.