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



pre_get_scheduled_event › WordPress Filter Hooks

Seit5.1.0
Veraltetn/v
apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp )
Parameter: (4)
  • (null|false|object) $pre Value to return instead. Default null to continue retrieving the event.
    Erforderlich: Ja
  • (string) $hook Action hook of the event.
    Erforderlich: Ja
  • (array) $args Array containing each separate argument to pass to the hook's callback function. Although not passed to a callback, these arguments are used to uniquely identify the event.
    Erforderlich: Ja
  • (int|null) $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
    Erforderlich: Ja
Definiert in:
Codex:

Filter to override retrieving a scheduled event.

Returning a non-null value will short-circuit the normal process, returning the filtered value instead.

Return false if the event does not exist, otherwise an event object should be returned.





Quellcode

$pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp );