Guest User

Untitled

a guest
Jan 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function add_mod_hatom_data($content) {
  2. $iso8601_date = get_the_time('c');
  3. $author = get_the_author();
  4. $title = get_the_title();
  5. if( is_single() ) {
  6. $content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span>
  7. ultima modifica: <span class="updated"> '.$iso8601_date.'</span>
  8. da <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
  9. }
  10. return $content;
  11. }
  12. add_filter('the_content', 'add_mod_hatom_data');
Add Comment
Please, Sign In to add comment