the_modified_author
Filters the display name of the author who last edited the current post.
Использование
add_filter( 'the_modified_author', 'wp_kama_the_modified_author_filter' ); /** * Function for `the_modified_author` filter-hook. * * @param string $display_name The author's display name, empty string if unknown. * * @return string */ function wp_kama_the_modified_author_filter( $display_name ){ // filter... return $display_name; }
- $display_name(строка)
- The author's display name, empty string if unknown.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
the_modified_author
wp-includes/author-template.php 105
return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' );