A WordPress-centric search engine for devs and theme authors



pre_get_lastpostmodified ›

Since4.4.0
Deprecatedn/a
apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type )
Parameters: (3)
  • (string) $lastpostmodified Date the last post was modified. Returning anything other than false will short-circuit the function.
    Required: Yes
  • (string) $timezone Location to use for getting the post modified date. See get_lastpostdate() for accepted `$timezone` values.
    Required: Yes
  • (string) $post_type The post type to check.
    Required: Yes
Defined at:
Codex:

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





Source

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