WP_Site_Health::maybe_create_scheduled_event() – Create a weekly cron event, if one does not already exist.

You appear to be a bot. Output may be restricted

Description

Creates a weekly cron event, if one does not already exist.

Usage

WP_Site_Health::maybe_create_scheduled_event();

Parameters

Returns

void

Source

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

1 to 5 of 5
  public function maybe_create_scheduled_event() {
    if ( ! wp_next_scheduled( 'wp_site_health_scheduled_check' ) && ! wp_installing() ) {
      wp_schedule_event( time() + DAY_IN_SECONDS, 'weekly', 'wp_site_health_scheduled_check' );
    }
  }
 

 View on GitHub View on Trac