# mainwp/trunk/cron/updatescheck.php

MainWP Dashboard: Self-hosted WordPress Management for Agencies, version trunk. 22 lines.

- Page: https://pluginprobe.com/plugins/mainwp/trunk/code/cron/updatescheck.php
- Raw: https://pluginprobe.com/plugins/mainwp/trunk/raw/cron/updatescheck.php
- Modified: 2026-02-24T16:08:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mainwp/trunk/code/cron/updatescheck.php#L10-L20`.

```php
<?php
/**
 * MainWP Updates Check Cron.
 *
 * Include cron/bootstrap.php & run mainwp_cronupdatescheck_action.
 *
 * @package MainWP/Updates_Check
 */

// include cron/bootstrap.php.
require_once 'bootstrap.php'; // NOSONAR - WP compatible.

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( isset( $mainWP ) ) {
    // fire off mainWP->mainwp_cronupdatescheck_action.
    $mainWP->mainwp_cronupdatescheck_action();
}

```
