pre_schedule_event

pre_schedule_event

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_schedule_event') is found 2 times:

  • /wp-includes/cron.php line 91
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    *     @type int          $interval  Optional. The interval time in seconds for the schedule. Only present for recurring events.
     * }
     * @param bool               $wp_error Whether to return a WP_Error on failure.
     */
    $pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error );
     
    if ( null !== $pre ) {
        if ( $wp_error && false === $pre ) {
            return new WP_Error(
                'pre_schedule_event_false',
                __( 'A plugin prevented the event from being scheduled.' )
  • /wp-includes/cron.php line 269
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
        'interval'  => $schedules[ $recurrence ]['interval'],
    );
     
    /** This filter is documented in wp-includes/cron.php */
    $pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error );
     
    if ( null !== $pre ) {
        if ( $wp_error && false === $pre ) {
            return new WP_Error(
                'pre_schedule_event_false',
                __( 'A plugin prevented the event from being scheduled.' )