PluginProbe
Hostinger Tools / 2.2.4
Hostinger Tools v2.2.4
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 / DefaultOptions.php

DefaultOptions.php in Hostinger Tools 2.2.4, at includes/DefaultOptions.php

36 lines 723 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger;
4
5 use Hostinger\Helper;
6
7 defined( 'ABSPATH' ) || exit;
8
9 class DefaultOptions {
10 public function add_options(): void {
11 foreach ( $this->options() as $key => $option ) {
12 update_option( $key, $option );
13 }
14 }
15
16 private function options(): array {
17 $options = array(
18 'optin_monster_api_activation_redirect_disabled' => 'true',
19 'wpforms_activation_redirect' => 'true',
20 'aioseo_activation_redirect' => 'false',
21 );
22
23 if ( Helper::is_plugin_active( 'astra-sites' ) ) {
24 $options = array_merge( $options, $this->get_astra_options() );
25 }
26
27 return $options;
28 }
29
30 private function get_astra_options(): array {
31 return array(
32 'astra_sites_settings' => 'gutenberg',
33 );
34 }
35 }
36