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



the_weekday ›

Since0.71
已弃用n/a
the_weekday ( 没有参数 )
定义在:
文档:

Display the weekday on which the post was written.



源码

function the_weekday() {
	global $wp_locale;

	$post = get_post();

	if ( ! $post ) {
		return;
	}

	$the_weekday = $wp_locale->get_weekday( get_post_time( 'w', false, $post ) );

	/**
	 * Filters the weekday on which the post was written, for display.
	 *
	 * @since 0.71
	 *
	 * @param string $the_weekday
	 */
	echo apply_filters( 'the_weekday', $the_weekday );
}