WP_Site_Health::has_late_cron

Advertisement

Summery Summery

Check if any scheduled tasks are late.

Syntax Syntax

WP_Site_Health::has_late_cron()

Description Description

Returns a boolean value of true if a scheduled task is late and ends processing. If the list of crons is an instance of WP_Error, return the instance instead of a boolean value.

Return Return

(bool|WP_Error) True if a cron is late, false if not. WP_Error if the cron is set to that.

Source Source

File: wp-admin/includes/class-wp-site-health.php

					'label' => __( 'Scheduled events' ),
					'test'  => 'scheduled_events',
				),
				'http_requests'             => array(
					'label' => __( 'HTTP Requests' ),
					'test'  => 'http_requests',
				),
				'debug_enabled'             => array(
					'label' => __( 'Debugging enabled' ),
					'test'  => 'is_in_debug_mode',
				),
				'file_uploads'              => array(
					'label' => __( 'File uploads' ),
					'test'  => 'file_uploads',
				),
				'plugin_theme_auto_updates' => array(
					'label' => __( 'Plugin and theme auto-updates' ),
					'test'  => 'plugin_theme_auto_updates',

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply