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

apply_filters('pre_clear_scheduled_hook') is found 1 times:

  • /wp-includes/cron.php line 583
    	 * @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.' )