
如何使用WordPress钩子来提高技术性SEO
apply_filters( 'the_time', get_the_time( $format )
the_time – 这是一个WordPress模板标签,它以格式化的方式显示一个文章、页面或自定义文章类型的日期和时间。它需要一个可选的格式参数,用来格式化显示的日期和时间。默认情况下,格式是由WordPress管理区的”日期格式”设置决定的。
筛选出一个文章的显示时间。
echo apply_filters( 'the_time', get_the_time( $format ), $format );