PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 1.0.7
Adminify – White Label, Admin Menu Editor, Login Customizer v1.0.7
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Admin / Options / Tweaks.php

Tweaks.php in Adminify – White Label, Admin Menu Editor, Login Customizer 1.0.7, at Inc/Admin/Options/Tweaks.php

54 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Admin\Options;
4
5 use WPAdminify\Inc\Utils;
6 use WPAdminify\Inc\Admin\AdminSettingsModel;
7
8
9 if (!defined('ABSPATH')) {
10 die;
11 } // Cannot access directly.
12
13 if (!class_exists('Tweaks')) {
14 class Tweaks extends AdminSettingsModel
15 {
16 public $defaults = [];
17
18 public function __construct()
19 {
20 $this->tweak_settings();
21 parent::__construct((array) get_site_option($this->prefix));
22 }
23
24 protected function get_defaults()
25 {
26 return $this->defaults;
27 }
28
29 public function tweak_settings()
30 {
31
32 if (!class_exists('ADMINIFY')) {
33 return;
34 }
35
36 // Tweaks Section
37 \ADMINIFY::createSection($this->prefix, array(
38 'title' => __('Tweaks', WP_ADMINIFY_TD),
39 'id' => 'tweaks_performance',
40 'icon' => 'fas fa-tools',
41 ));
42
43 $this->defaults = array_merge($this->defaults, (new Tweaks_Head())->get_defaults());
44 $this->defaults = array_merge($this->defaults, (new Tweaks_Feed())->get_defaults());
45 $this->defaults = array_merge($this->defaults, (new Tweaks_HTTP_Response())->get_defaults());
46 $this->defaults = array_merge($this->defaults, (new Tweaks_WP_JSON_API())->get_defaults());
47 $this->defaults = array_merge($this->defaults, (new Tweaks_Comments())->get_defaults());
48 $this->defaults = array_merge($this->defaults, (new Tweaks_Archives())->get_defaults());
49 $this->defaults = array_merge($this->defaults, (new Tweaks_Attachments())->get_defaults());
50 $this->defaults = array_merge($this->defaults, (new Tweaks_Performance())->get_defaults());
51 }
52 }
53 }
54