# hostinger/2.1.7/includes/Admin/Onboarding/Settings.php

Hostinger Tools, version 2.1.7. 21 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.1.7/code/includes/Admin/Onboarding/Settings.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.1.7/raw/includes/Admin/Onboarding/Settings.php
- Modified: 2024-03-15T08:53:42+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/hostinger/2.1.7/code/includes/Admin/Onboarding/Settings.php#L10-L20`.

```php
<?php

namespace Hostinger\Admin\Onboarding;

use Hostinger\Admin\Actions as Admin_Actions;

defined( 'ABSPATH' ) || exit;

class Settings {
	public static function all_steps_completed(): bool {
		$actions                = Admin_Actions::ACTIONS_LIST;
		$completed_steps        = get_option( 'hostinger_onboarding_steps', array() );
		$completed_step_actions = array_column( $completed_steps, 'action' );
		$completed_steps_count  = count( array_intersect( $completed_step_actions, $actions ) );

		return $completed_steps_count === count( $actions );
	}
}

new Settings();

```
