the_modified_date

FUNCTION wp-includes\general-template.php (ligne 2738) github
Filters the date of the post.

Paramètres

Entrée :
$format = '', $before = '', $after = '', $display = true
Sortie :
@param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
@param string     $format   PHP date format.
@param WP_Post    $post     The post object.
@param string $format  Optional. PHP date format. Defaults to the 'date_format' option.
@param string $before  Optional. Output before the date. Default empty.
@param string $after   Optional. Output after the date. Default empty.
@param bool   $display Optional. Whether to echo the date or return it. Default true.
@return string|void String if retrieving.

Utilisation

// Utilisation de la fonction the_modified_date
$result = the_modified_date($format = '', $before = '', $after = '', $display = true);

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

Actualités

Chargement des actualités...