wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
the_weekday › WordPress Function
Desde0.71
Obsoleton/a
› the_weekday ( Sem parâmetros )
| Definido em: |
|
| Codex: | |
| Log de mudanças: |
|
Displays the localized weekday for the post.
Fonte
function the_weekday() {
global $wp_locale;
$post = get_post();
if ( ! $post ) {
return;
}
$the_weekday = '';
$weekday_number = get_post_time( 'w', false, $post );
if ( false !== $weekday_number ) {
$the_weekday = $wp_locale->get_weekday( (int) $weekday_number );
}
/**
* Filters the localized weekday of the post, for display.
*
* @since 0.71
*
* @param string $the_weekday
*/
echo apply_filters( 'the_weekday', $the_weekday );
}