Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_get_lastpostmodified ›

Seit4.4.0
Veraltetn/v
apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type )
Parameter: (3)
  • (string) $lastpostmodified Date the last post was modified. Returning anything other than false will short-circuit the function.
    Erforderlich: Ja
  • (string) $timezone Location to use for getting the post modified date. See get_lastpostdate() for accepted `$timezone` values.
    Erforderlich: Ja
  • (string) $post_type The post type to check.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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