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



date_i18n › WordPress过滤钩子

Since2.8.0
已弃用n/a
› apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt )
参数: (4)
  • () date Formatted date string.
    Required: Yes
  • () format Format to display the date.
    Required: Yes
  • () timestamp A sum of Unix timestamp and timezone offset in seconds. Might be without offset if input omitted timestamp but requested GMT.
    Required: Yes
  • () gmt Whether to use GMT timezone. Only applies if timestamp was not provided.
    Required: Yes
定义在:
文档:

Filters the date formatted based on the locale.





源码

$date = apply_filters( 'date_i18n', $date, $format, $timestamp, $gmt );