Switch language

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




get_lastpostmodified [ WordPress Function ]

get_lastpostmodified ( $timezone = 'server' )
Parameters:
  • (string) $timezone The location to get the time. Can be 'gmt', 'blog', or 'server'.
Uses:
Returns:
  • (string) The date the post was last modified.
Defined at:



Retrieve last post modified date depending on timezone.

The server timezone is the default and is the difference between GMT and server time. The 'blog' value is just when the last post was modified. The 'gmt' is when the last post was modified in GMT time.

Source


<?php
function get_lastpostmodified($timezone 'server') {
    
$lastpostmodified _get_last_post_time$timezone'modified' );

    
$lastpostdate get_lastpostdate($timezone);
    if ( 
$lastpostdate $lastpostmodified )
        
$lastpostmodified $lastpostdate;

    return 
apply_filters'get_lastpostmodified'$lastpostmodified$timezone );
}
?>

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