
什么是WordPress站点.htaccess文件?
the_time ( $format = '' )
the_time: 这个函数用来显示一个文章或页面在当前WordPress时区的时间。它通常在The Loop中使用,并接受一个字符串作为参数来格式化时间输出。
显示文章的写作时间。
function the_time( $format = '' ) { /** * Filters the time a post was written 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 ); }