get_the_modified_date

FUNCTION wp-includes\general-template.php (ligne 2764) github
Filters the date a post was last modified, for display.

Paramètres

Entrée :
$format = '', $post = null
Sortie :
@param string $the_modified_date The last modified date.
@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 modified. False on failure.

Utilisation

// Utilisation de la fonction get_the_modified_date
$result = get_the_modified_date($format = '', $post = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...