get_the_time

FUNCTION wp-includes\general-template.php (ligne 2828) github
Filters the time of the post, for display.

Paramètres

Entrée :
$format = '', $post = null
Sortie :
@param string $get_the_time The formatted time.
@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   Post ID or post object. Default is global `$post` object.
@return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.

Utilisation

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

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

Actualités

Chargement des actualités...