wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_the_modified_author › WordPress Function
Since2.8.0
已弃用n/a
› get_the_modified_author ( 没有参数 )
返回: |
|
定义在: |
|
文档: |
Retrieves the author who last edited the current post.
Related Functions: the_modified_author, get_the_modified_date, get_the_modified_time, get_the_author, the_modified_date
源码
function get_the_modified_author() { $last_id = get_post_meta( get_post()->ID, '_edit_last', true ); if ( $last_id ) { $last_user = get_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 unknown. */ return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' ); } }