Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_the_modified_author [ WordPress Function ]

get_the_modified_author ( No parameters )
Uses:
Returns:
  • (string) The author's display name.
Defined at:



Retrieve the author who last edited the current post.

Source


<?php
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);
    }
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics