pre_reschedule_event

pre_reschedule_event

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_reschedule_event') is found 1 times:

  • /wp-includes/cron.php line 402
    	 *     @type int    $interval  The interval time in seconds for the schedule.
    	 * }
    	 * @param bool               $wp_error Whether to return a WP_Error on failure.
    	 */
    	$pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error );
    
    	if ( null !== $pre ) {
    		if ( $wp_error && false === $pre ) {
    			return new WP_Error(
    				'pre_reschedule_event_false',
    				__( 'A plugin prevented the event from being rescheduled.' )