Filters the time of the post.
$format = 'U', $gmt = false, $post = null, $translate = false
Sortie :
@param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. @param string $format Format to use for retrieving the time the post @param WP_Post $post Post object. @param string $format Optional. Format to use for retrieving the time the post @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. @param int|WP_Post $post Post ID or post object. Default is global `$post` object. @param bool $translate Whether to translate the time string. Default false. @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
// Utilisation de la fonction get_post_time
$result = get_post_time($format = 'U', $gmt = false, $post = null, $translate = false);
if ($result) {
// Votre logique ici
}
Chargement des actualités...