WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
400 | * |
401 | * @type string $hook Action hook to execute when the event is run. |
402 | * @type int $timestamp Unix timestamp (UTC) for when to next run the event. |
403 | * @type string|false $schedule How often the event should subsequently recur. |
404 | * @type array $args Array containing each separate argument to pass to the hook's callback function. |
405 | * @type int $interval The interval time in seconds for the schedule. Only present for recurring events. |
406 | * } |
407 | * @param bool $wp_error Whether to return a WP_Error on failure. |
408 | */ |
409 | $pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error ); |
410 |
|
411 | if ( null !== $pre ) { |
412 | if ( $wp_error && false === $pre ) { |
413 | return new WP_Error( |
414 | 'pre_reschedule_event_false', |
415 | __( 'A plugin prevented the event from being rescheduled.' ) |
416 | ); |
417 | } |
418 |
|