pre_schedule_event

pre_schedule_event

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_schedule_event') is found 2 times:

  • /wp-includes/cron.php line 91
    	 *     @type int          $interval  Optional. The interval time in seconds for the schedule. Only present for recurring events.
    	 * }
    	 * @param bool               $wp_error Whether to return a WP_Error on failure.
    	 */
    	$pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error );
    
    	if ( null !== $pre ) {
    		if ( $wp_error && false === $pre ) {
    			return new WP_Error(
    				'pre_schedule_event_false',
    				__( 'A plugin prevented the event from being scheduled.' )
    
  • /wp-includes/cron.php line 269
    		'interval'  => $schedules[ $recurrence ]['interval'],
    	);
    
    	/** This filter is documented in wp-includes/cron.php */
    	$pre = apply_filters( 'pre_schedule_event', null, $event, $wp_error );
    
    	if ( null !== $pre ) {
    		if ( $wp_error && false === $pre ) {
    			return new WP_Error(
    				'pre_schedule_event_false',
    				__( 'A plugin prevented the event from being scheduled.' )