pre_unschedule_hook

pre_unschedule_hook

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('pre_unschedule_hook') is found 1 times:

  • /wp-includes/cron.php line 672
    	 * @param null|int|false|WP_Error $pre      Value to return instead. Default null to continue unscheduling the hook.
    	 * @param string                  $hook     Action hook, the execution of which will be unscheduled.
    	 * @param bool                    $wp_error Whether to return a WP_Error on failure.
    	 */
    	$pre = apply_filters( 'pre_unschedule_hook', null, $hook, $wp_error );
    
    	if ( null !== $pre ) {
    		if ( $wp_error && false === $pre ) {
    			return new WP_Error(
    				'pre_unschedule_hook_false',
    				__( 'A plugin prevented the hook from being cleared.' )