get_the_modified_time

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

Paramètres

Entrée :
$format = '', $post = null
Sortie :
@param string|false $get_the_modified_time The formatted time or false if no post is found.
@param string       $format                Format to use for retrieving the time the post
@param string      $format Optional. Format to use for retrieving the time the post
@param int|WP_Post $post   Optional. Post ID or WP_Post object. Default current post.
@return string|int|false Formatted date string or Unix timestamp. False on failure.

Utilisation

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

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

Actualités

Chargement des actualités...