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



pre_get_lastpostmodified › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type )
参数: (3)
  • () lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format, or false. Returning anything other than false will short-circuit the function.
    Required: Yes
  • () timezone Location to use for getting the post modified date. See get_lastpostdate() for accepted `$timezone` values.
    Required: Yes
  • () post_type The post type to check.
    Required: Yes
定义在:
文档:

Pre-filter the return value of get_lastpostmodified() before the query is run.





源码

$lastpostmodified = apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type );