pre_clear_scheduled_hook

pre_clear_scheduled_hook

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_clear_scheduled_hook') is found 1 times:

  • /wp-includes/cron.php line 583
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    * @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_clear_scheduled_hook', null, $hook, $args, $wp_error );
     
    if ( null !== $pre ) {
        if ( $wp_error && false === $pre ) {
            return new WP_Error(
                'pre_clear_scheduled_hook_false',
                __( 'A plugin prevented the hook from being cleared.' )