PluginProbe
Hostinger Tools / 2.1.1
Hostinger Tools v2.1.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
← All changes | includes/class-hostinger-activator.php +14 -0 2.0.12.1.1 View file →
@@ -2,10 +2,24 @@
2 2
3 3 defined( 'ABSPATH' ) || exit;
4 4
5 5 class Hostinger_Activator {
6 +
6 7 public static function activate(): void {
7 8 require_once HOSTINGER_ABSPATH . 'includes/class-hostinger-default-options.php';
8 9 $options = new Hostinger_Default_Options();
9 10 $options->add_options();
11 +
12 + self::update_installation_state_on_activation();
13 + }
14 +
15 + /**
16 + * Saves installation state.
17 + */
18 + public static function update_installation_state_on_activation(): void {
19 + $installation_state = get_option( 'hts_new_installation', false );
20 +
21 + if ( $installation_state !== 'old' ) {
22 + add_option( 'hts_new_installation', 'new' );
23 + }
10 24 }
11 25 }