Filters the most recent time that a post on the site was published.
$timezone = 'server', $post_type = 'any'
Sortie :
@param string|false $lastpostdate The most recent time that a post was published, @param string $timezone Location to use for getting the post published date. @param string $post_type The post type to check. @param string $timezone Optional. The timezone for the timestamp. See get_lastpostdate() @param string $post_type Optional. The post type to check. Default 'any'. @return string The timestamp in 'Y-m-d H:i:s' format, or false on failure.
// Utilisation de la fonction get_lastpostmodified
$result = get_lastpostmodified($timezone = 'server', $post_type = 'any');
if ($result) {
// Votre logique ici
}
Chargement des actualités...