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 |
---|---|
739 | * @since 5.1.0 |
740 | * |
741 | * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event. |
742 | * @param string $hook Action hook of the event. |
743 | * @param array $args Array containing each separate argument to pass to the hook's callback function. |
744 | * Although not passed to a callback, these arguments are used to uniquely identify |
745 | * the event. |
746 | * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event. |
747 | */ |
748 | $pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp ); |
749 | if ( null !== $pre ) { |
750 | return $pre; |
751 | } |
752 |
|
753 | if ( null !== $timestamp && ! is_numeric( $timestamp ) ) { |
754 | return false; |
755 | } |
756 |
|
757 | $crons = _get_cron_array(); |