# defender-security/5.5.1/src/model/class-onboard.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.5.1. 36 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.5.1/code/src/model/class-onboard.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.5.1/raw/src/model/class-onboard.php
- Modified: 2025-09-08T09:21:46+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/defender-security/5.5.1/code/src/model/class-onboard.php#L10-L20`.

```php
<?php
/**
 * The onboard model class.
 *
 * @package WP_Defender\Model
 */

namespace WP_Defender\Model;

/**
 * Class Onboard.
 *
 * Provides methods to check if the site is newly created.
 */
class Onboard {
	/**
	 * Checks if the site is newly created.
	 *
	 * @return bool Returns true if the site is newly created, false otherwise.
	 */
	public static function maybe_show_onboarding(): bool {
		// First we need to check if the site is newly create.
		if ( ! is_multisite() ) {
			$res = get_option( 'wp_defender_shown_activator' );
		} else {
			$res = get_site_option( 'wp_defender_shown_activator' );
		}
		// Get '1' for direct SQL request if Onboarding was already.
		if ( empty( $res ) ) {
			return true;
		}

		return false;
	}
}

```
