WordPress开发者和主题制作者的搜索引擎



the_time ›

Since0.71
已弃用n/a
the_time ( $d = '' )
参数:
  • (string) $d Either 'G', 'U', or php date format.
    Required: No
    默认: (empty)
定义在:
文档:

Display the time at which the post was written.



源码

function the_time( $d = '' ) {
	/**
	 * Filters the time a post was written for display.
	 *
	 * @since 0.71
	 *
	 * @param string $get_the_time The formatted time.
	 * @param string $d            The time format. Accepts 'G', 'U',
	 *                             or php date format.
	 */
	echo apply_filters( 'the_time', get_the_time( $d ), $d );
}