the_date

过滤钩子


apply_filters( 'the_date', $the_date, $format, $before, $after )
参数
  • (string)
    $the_date
    The formatted date string.
    Required:
  • (string)
    $format
    PHP date format.
    Required:
  • (string)
    $before
    HTML output before the date.
    Required:
  • (string)
    $after
    HTML output after the date.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 2540
引入
0.71
弃用

Filters the date a post was published for display.

$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );