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



pre_get_scheduled_event › WordPress过滤钩子

Since5.1.0
已弃用n/a
apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp )
参数: (4)
  • (null|false|object) $pre Value to return instead. Default null to continue retrieving the event.
    Required: Yes
  • (string) $hook Action hook of the event.
    Required: Yes
  • (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.
    Required: Yes
  • (int|null) $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
    Required: Yes
定义在:
文档:

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.





源码

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