PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.11.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.11.0
4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Staging / Service / StagingSetup.php
wp-staging / Staging / Service Last commit date
Database 1 day ago AbstractStagingSetup.php 1 day ago DirectoryScanner.php 1 day ago FileCopier.php 1 day ago LegacyOptionsCache.php 1 day ago StagingEngine.php 1 day ago StagingSetup.php 1 day ago TableScanner.php 1 day ago
StagingSetup.php
175 lines
1 <?php
2
3 namespace WPStaging\Staging\Service;
4
5
6
7
8 class StagingSetup extends AbstractStagingSetup
9 {
10
11
12
13 public function renderNetworkCloneSettings()
14 {
15
16 }
17
18 public function getAdvanceSettingsTitle(): string
19 {
20 return esc_html__("Advanced Settings (Requires Pro Version)", "wp-staging");
21 }
22
23
24
25
26 public function renderAdvanceSettingsHeader()
27 {
28 echo $this->templateEngine->render('staging/_partials/advance-settings-header.php'); // phpcs:ignore
29 }
30
31
32
33
34 public function renderAdvanceSettings(string $name, string $label, string $description, bool $checked = false, string $additionalClasses = '', string $dataId = '', string $summary = '', string $content = '', $tooltip = null)
35 {
36
37 $this->renderSettings($name, $label, $description, $checked, true, $additionalClasses, $dataId, $summary, $content, $tooltip);
38 }
39
40
41
42
43 public function renderNewAdminSettings()
44 {
45 $fields = [
46 [
47 'label' => esc_html__('Email: ', 'wp-staging'),
48 'name' => 'wpstg-new-admin-email',
49 'type' => 'email',
50 'placeholder' => '',
51 'value' => '',
52 'autocapitalize' => false,
53 'disabled' => true,
54 ],
55 [
56 'label' => esc_html__('Password: ', 'wp-staging'),
57 'name' => 'wpstg-new-admin-password',
58 'type' => 'password',
59 'placeholder' => '',
60 'value' => '',
61 'autocapitalize' => false,
62 'autocomplete' => false,
63 'disabled' => true,
64 ],
65 ];
66
67 $this->renderSettingsFields($fields);
68 }
69
70
71
72
73 public function renderCustomDirectorySettings()
74 {
75 $fields = [
76 [
77 'label' => esc_html__('Destination Path: ', 'wp-staging'),
78 'name' => 'wpstg_clone_dir',
79 'type' => 'text',
80 'placeholder' => ABSPATH,
81 'value' => '',
82 'autocapitalize' => false,
83 'disabled' => true,
84 ],
85 [
86 'label' => esc_html__('Target Hostname: ', 'wp-staging'),
87 'name' => 'wpstg_clone_hostname',
88 'type' => 'text',
89 'placeholder' => get_site_url(),
90 'value' => '',
91 'autocapitalize' => false,
92 'disabled' => true,
93 ],
94 ];
95
96 $this->renderSettingsFields($fields);
97 }
98
99
100
101
102
103
104
105 public function renderExternalDatabaseSettings()
106 {
107 $fields = [
108 [
109 'label' => esc_html__('Server: ', 'wp-staging'),
110 'name' => 'wpstg-db-server',
111 'type' => 'text',
112 'placeholder' => 'localhost',
113 'value' => '',
114 'autocapitalize' => false,
115 'disabled' => true,
116 ],
117 [
118 'label' => esc_html__('User: ', 'wp-staging'),
119 'name' => 'wpstg-db-user',
120 'type' => 'text',
121 'placeholder' => '',
122 'value' => '',
123 'autocapitalize' => false,
124 'disabled' => true,
125 ],
126 [
127 'label' => esc_html__('Password: ', 'wp-staging'),
128 'name' => 'wpstg-db-pass',
129 'type' => 'password',
130 'placeholder' => '',
131 'value' => '',
132 'autocapitalize' => false,
133 'autocomplete' => false,
134 'disabled' => true,
135 ],
136 [
137 'label' => esc_html__('Database: ', 'wp-staging'),
138 'name' => 'wpstg-db-database',
139 'type' => 'text',
140 'placeholder' => '',
141 'value' => '',
142 'autocapitalize' => false,
143 'disabled' => true,
144 ],
145 [
146 'label' => esc_html__('Database Prefix: ', 'wp-staging'),
147 'name' => 'wpstg-db-prefix',
148 'type' => 'text',
149 'placeholder' => 'wp_',
150 'value' => '',
151 'autocapitalize' => false,
152 'disabled' => true,
153 ],
154 [
155 'label' => esc_html__('Enable SSL: ', 'wp-staging'),
156 'name' => 'wpstg-db-ssl',
157 'type' => 'checkbox',
158 'value' => 'true',
159 'checked' => false,
160 'disabled' => true,
161 ],
162 ];
163
164 $this->renderSettingsFields($fields);
165 }
166
167
168
169
170 public function renderEnableWooSchedulerSettings()
171 {
172
173 }
174 }
175