функция
since 0.71
the_time()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
the_time( string $format = '' )
Описание
Выводит время записи.
Параметры
$format
string
необязательный
= ''
Формат для получения времени написания записи. Принимает 'G', 'U' или формат даты PHP.
По умолчанию используется значение опции 'time_format'.
Исходный код
wp-includes/general-template.php:2827
function the_time( $format = '' ) {
/**
* Filters the time of the post, for display.
*
* @since 0.71
*
* @param string $get_the_time The formatted time.
* @param string $format Format to use for retrieving the time the post
* was written. Accepts 'G', 'U', or PHP date format.
*/
echo apply_filters( 'the_time', get_the_time( $format ), $format );
}
История изменений
| Версия | Описание |
|---|---|
| 0.71 | Introduced. |

