Filters the date of the post, for display.
$format = '', $post = null
Sortie :
@param string $the_date The formatted date string. @param string $format PHP date format. @param string $before HTML output before the date. @param string $after HTML output after the date. @param string $format Optional. PHP date format. Defaults to the 'date_format' option. @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. @return string|int|false Date the current post was written. False on failure.
// Utilisation de la fonction get_the_date
$result = get_the_date($format = '', $post = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...