wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_get_lastpostmodified › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type )
Parametry: (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.
    Wymagane: Tak
  • () timezone Location to use for getting the post modified date. See get_lastpostdate() for accepted `$timezone` values.
    Wymagane: Tak
  • () post_type The post type to check.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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