PluginProbe
Hostinger Tools / 2.2.1
Hostinger Tools v2.2.1
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
hostinger / includes / Admin / Onboarding / Settings.php

Settings.php in Hostinger Tools 2.2.1, at includes/Admin/Onboarding/Settings.php

21 lines 574 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger\Admin\Onboarding;
4
5 use Hostinger\Admin\Actions as Admin_Actions;
6
7 defined( 'ABSPATH' ) || exit;
8
9 class Settings {
10 public static function all_steps_completed(): bool {
11 $actions = Admin_Actions::ACTIONS_LIST;
12 $completed_steps = get_option( 'hostinger_onboarding_steps', array() );
13 $completed_step_actions = array_column( $completed_steps, 'action' );
14 $completed_steps_count = count( array_intersect( $completed_step_actions, $actions ) );
15
16 return $completed_steps_count === count( $actions );
17 }
18 }
19
20 new Settings();
21