Switch language

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




get_lastpostdate [ WordPress Function ]

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



Retrieve the date that the last post was published.

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

Source


<?php
function get_lastpostdate($timezone 'server') {
    return 
apply_filters'get_lastpostdate'_get_last_post_time$timezone'date' ), $timezone );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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