pre_unschedule_event

pre_unschedule_event

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_unschedule_event') is found 1 times:

  • /wp-includes/cron.php line 493
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    * @param string             $hook      Action hook, the execution of which will be unscheduled.
     * @param array              $args      Arguments to pass to the hook's callback function.
     * @param bool               $wp_error  Whether to return a WP_Error on failure.
     */
    $pre = apply_filters( 'pre_unschedule_event', null, $timestamp, $hook, $args, $wp_error );
     
    if ( null !== $pre ) {
        if ( $wp_error && false === $pre ) {
            return new WP_Error(
                'pre_unschedule_event_false',
                __( 'A plugin prevented the event from being unscheduled.' )