
站长必藏:26个Linux服务器管理常用SSH命令行
the_weekday ( No parameters )
the_weekday: 这个函数检索给定日期的工作日名称或WordPress时区中的当前日期。
显示写文章的工作日。
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 ); }