WP_Site_Health::has_missed_cron

Advertisement

Summery Summery

Check if any scheduled tasks have been missed.

Syntax Syntax

WP_Site_Health::has_missed_cron()

Description Description

Returns a boolean value of true if a scheduled task has been missed 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 was missed, false if not. WP_Error if the cron is set to that.

Source Source

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

				'php_default_timezone'      => array(
					'label' => __( 'PHP Default Timezone' ),
					'test'  => 'php_default_timezone',
				),
				'php_sessions'              => array(
					'label' => __( 'PHP Sessions' ),
					'test'  => 'php_sessions',
				),
				'sql_server'                => array(
					'label' => __( 'Database Server version' ),
					'test'  => 'sql_server',
				),
				'utf8mb4_support'           => array(
					'label' => __( 'MySQL utf8mb4 support' ),

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply