the_weekday_date
Filters the localized date on which the post was written, for display.
Использование
add_filter( 'the_weekday_date', 'wp_kama_the_weekday_date_filter', 10, 3 ); /** * Function for `the_weekday_date` filter-hook. * * @param string $the_weekday_date The weekday on which the post was written. * @param string $before The HTML to output before the date. * @param string $after The HTML to output after the date. * * @return string */ function wp_kama_the_weekday_date_filter( $the_weekday_date, $before, $after ){ // filter... return $the_weekday_date; }
- $the_weekday_date(строка)
- The weekday on which the post was written.
- $before(строка)
- The HTML to output before the date.
- $after(строка)
- The HTML to output after the date.
Список изменений
С версии 0.71 | Введена. |
Где вызывается хук
the_weekday_date
wp-includes/general-template.php 3048
echo apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );