PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Core / wordpress / override.php

override.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.1.0, at back/Core/wordpress/override.php

653 lines 20.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') || die('Restricted Access');
4
5 function acym_getEmailOverrides(): array
6 {
7 $emailOverrides = [
8 [
9 'name' => 'wp-adminNewUserAdmin',
10 'base_subject' => [
11 '[%s] New User Registration',
12 ],
13 'base_body' => [
14 'New user registration on your site %s:',
15 "\r\n\r\n",
16 'Username: %s',
17 "\r\n\r\n",
18 'Email: %s',
19 "\r\n",
20 ],
21 'new_subject' => '[{param1}] New User Registration',
22 'new_body' => 'New user registration on your site {param2}:
23 <br>
24 <br>
25 Username: {param3}
26 <br>
27 <br>Email: {param4}',
28 'description' => 'ACYM_OVERRIDE_DESC_REG_ADMIN_NOTIFICATION',
29 'source' => 'wordpress',
30 ],
31 [
32 'name' => 'wp-newUser',
33 'base_subject' => [
34 '[%s] Login Details',
35 ],
36 'base_body' => [
37 'Username: %s',
38 "\r\n\r\n",
39 'To set your password, visit the following address:',
40 "\r\n\r\n",
41 '%s',
42 ],
43 'new_subject' => '[{param1}] Login Details',
44 'new_body' => 'Username: {param2}
45 <br>
46 <br>To set your password, visit the following address:
47 <br>
48 <br>{param3}',
49 'description' => 'ACYM_OVERRIDE_DESC_ADMIN_CREATED',
50 'source' => 'wordpress',
51 ],
52 [
53 'name' => 'wp-passwordChangeNotif',
54 'base_subject' => [
55 '[%s] Password Changed',
56 ],
57 'base_body' => [
58 'Hi ###USERNAME###,
59
60 This notice confirms that your password was changed on ###SITENAME###.
61
62 If you did not change your password, please contact the Site Administrator at
63 ###ADMIN_EMAIL###
64
65 This email has been sent to ###EMAIL###
66
67 Regards,
68 All at ###SITENAME###
69 ###SITEURL###',
70 ],
71 'new_subject' => '[{param1}] Password Changed',
72 'new_body' => 'Hi {param2},
73 <br>
74 <br>
75 This notice confirms that your password was changed on {param3}.
76 <br>
77 <br>
78 If you did not change your password, please contact the Site Administrator at
79 {param4}
80 <br>
81 <br>
82 This email has been sent to {param5}
83 <br>
84 <br>
85 Regards,
86 All at {param6}
87 {param7}',
88 'description' => 'ACYM_OVERRIDE_DESC_CONFIRMATION_CHANGE_PASSWORD',
89 'source' => 'wordpress',
90 ],
91 [
92 'name' => 'wp-emailChangeNotif',
93 'base_subject' => [
94 '[%s] Email Changed',
95 ],
96 'base_body' => [
97 'Hi ###USERNAME###,
98
99 This notice confirms that your email address on ###SITENAME### was changed to ###NEW_EMAIL###.
100
101 If you did not change your email, please contact the Site Administrator at
102 ###ADMIN_EMAIL###
103
104 This email has been sent to ###EMAIL###
105
106 Regards,
107 All at ###SITENAME###
108 ###SITEURL###',
109 ],
110 'new_subject' => '[{param1}] Email Changed',
111 'new_body' => 'Hi {param2},
112 <br>
113 <br>
114 This notice confirms that your email address on {param3} was changed to {param4}.
115 <br>
116 <br>
117 If you did not change your email, please contact the Site Administrator at
118 {param5}
119 <br>
120 <br>
121 This email has been sent to {param6}
122 <br>
123 <br>
124 Regards,
125 All at {param7}
126 {param8}',
127 'description' => 'ACYM_OVERRIDE_DESC_CONFIRMATION_CHANGE_EMAIL',
128 'source' => 'wordpress',
129 ],
130 [
131 'name' => 'wp-passwordUserChangeNotifAdmin',
132 'base_subject' => [
133 '[%s] Password Changed',
134 ],
135 'base_body' => [
136 'Password changed for user: %s',
137 "\r\n",
138 ],
139 'new_subject' => '[{param1}] Password Changed',
140 'new_body' => 'Password changed for user: {param2}',
141 'description' => 'ACYM_OVERRIDE_DESC_ADMIN_NOTIFICATION_CHANGE_PASSWORD',
142 'source' => 'wordpress',
143 ],
144 [
145 'name' => 'wp-adminNotifUserRequestConfirm',
146 'base_subject' => [
147 '[%1$s] Action.php Confirmed: %2$s',
148 ],
149 'base_body' => [
150 'Howdy,
151
152 A user data privacy request has been confirmed on ###SITENAME###:
153
154 User: ###USER_EMAIL###
155 Request: ###DESCRIPTION###
156
157 You can view and manage these data privacy requests here:
158
159 ###MANAGE_URL###
160
161 Regards,
162 All at ###SITENAME###
163 ###SITEURL###',
164 ],
165 'new_subject' => '[{param1}] Action.php Confirmed: {param2}',
166 'new_body' => 'Howdy,
167 <br>
168 <br>
169 A user data privacy request has been confirmed on {param3}:
170 <br>
171 <br>
172 User: {param4}
173 Request: {param5}
174 <br>
175 <br>
176 You can view and manage these data privacy requests here:
177 <br>
178 <br>
179 {param6}
180 <br>
181 <br>
182 Regards,
183 All at {param7}
184 {param8}',
185 'description' => 'ACYM_OVERRIDE_DESC_ADMIN_NOTIFICATION_DATA_REQUEST',
186 'source' => 'wordpress',
187 ],
188 [
189 'name' => 'wp-userErasureRequestConfirm1',
190 'base_subject' => [
191 '[%s] Erasure Request Fulfilled',
192 ],
193 'base_body' => [
194 'Howdy,
195
196 Your request to erase your personal data on ###SITENAME### has been completed.
197
198 If you have any follow-up questions or concerns, please contact the site administrator.
199
200 Regards,
201 All at ###SITENAME###
202 ###SITEURL###',
203 ],
204 'new_subject' => '[{param1}] Erasure Request Fulfilled',
205 'new_body' => 'Howdy,
206 <br>
207 <br>
208 Your request to erase your personal data on {param2} has been completed.
209 <br>
210 <br>
211 If you have any follow-up questions or concerns, please contact the site administrator.
212 <br>
213 <br>
214 Regards,
215 All at {param3}
216 {param4}',
217 'description' => 'ACYM_OVERRIDE_DESC_DATA_REMOVAL_CONFIRMATION',
218 'source' => 'wordpress',
219 ],
220 [
221 'name' => 'wp-UserErasureRequestConfirm2',
222 'base_subject' => [
223 '[%s] Erasure Request Fulfilled',
224 ],
225 'base_body' => [
226 'Howdy,
227
228 Your request to erase your personal data on ###SITENAME### has been completed.
229
230 If you have any follow-up questions or concerns, please contact the site administrator.
231
232 For more information, you can also read our privacy policy: ###PRIVACY_POLICY_URL###
233
234 Regards,
235 All at ###SITENAME###
236 ###SITEURL###',
237 ],
238 'new_subject' => '[{param1}] Erasure Request Fulfilled',
239 'new_body' => 'Howdy,
240 <br>
241 <br>
242 Your request to erase your personal data on {param2} has been completed.
243 <br>
244 <br>
245 If you have any follow-up questions or concerns, please contact the site administrator.
246 <br>
247 <br>
248 For more information, you can also read our privacy policy: {param3}
249 <br>
250 <br>
251 Regards,
252 All at {param4}
253 {param5}',
254 'description' => 'ACYM_OVERRIDE_DESC_DATA_REMOVAL_CONFIRMATION_PRIVACY',
255 'source' => 'wordpress',
256 ],
257 [
258 'name' => 'wp-userPasswordRetrieveRequest',
259 'base_subject' => [
260 '[%s] Password Reset',
261 ],
262 'base_body' => [
263 'Someone has requested a password reset for the following account:',
264 "\r\n\r\n",
265 'Site Name: %s',
266 "\r\n\r\n",
267 'Username: %s',
268 "\r\n\r\n",
269 'If this was a mistake, ignore this email and nothing will happen.',
270 "\r\n\r\n",
271 'To reset your password, visit the following address:',
272 "\r\n\r\n",
273 '%s',
274 "\r\n\r\n",
275 'This password reset request originated from the IP address %s.',
276 "\r\n\r\n",
277
278 ],
279 'new_subject' => '[{param1}] Password Reset',
280 'new_body' => 'Someone has requested a password reset for the following account:
281 <br>
282 <br>Site Name: {param2}
283 <br>
284 <br>Username: {param3}
285 <br>
286 <br>If this was a mistake, ignore this email and nothing will happen.
287 <br>
288 <br>To reset your password, visit the following address:
289 <br>
290 <br>{param4}
291 <br>
292 <br>This password reset request originated from the IP address {param5}.',
293
294 'description' => 'ACYM_OVERRIDE_DESC_RESET_PASSWORD',
295 'source' => 'wordpress',
296 ],
297 [
298 'name' => 'wp-userResetEmailRequest',
299 'base_subject' => [
300 '[%s] Email Change Request',
301 ],
302 'base_body' => [
303 'Howdy ###USERNAME###,
304
305 You recently requested to have the email address on your account changed.
306
307 If this is correct, please click on the following link to change it:
308 ###ADMIN_URL###
309
310 You can safely ignore and delete this email if you do not want to
311 take this action.
312
313 This email has been sent to ###EMAIL###
314
315 Regards,
316 All at ###SITENAME###
317 ###SITEURL###',
318 ],
319 'new_subject' => '[{param1}] Email Change Request',
320 'new_body' => 'Howdy {param2},
321 <br>
322 <br>
323 You recently requested to have the email address on your account changed.
324 <br>
325 <br>
326 If this is correct, please click on the following link to change it:
327 {param3}
328 <br>
329 <br>
330 You can safely ignore and delete this email if you do not want to
331 take this action.
332 <br>
333 <br>
334 This email has been sent to {param4}
335 <br>
336 <br>
337 Regards,
338 All at {param5}
339 {param6}',
340 'description' => 'ACYM_OVERRIDE_DESC_CHANGE_EMAIL',
341 'source' => 'wordpress',
342 ],
343 [
344 'name' => 'wp-userRequestConfirmAction',
345 'base_subject' => [
346 '[%1$s] Confirm Action.php: %2$s',
347 ],
348 'base_body' => [
349 'Howdy,
350
351 A request has been made to perform the following action on your account:
352
353 ###DESCRIPTION###
354
355 To confirm this, please click on the following link:
356 ###CONFIRM_URL###
357
358 You can safely ignore and delete this email if you do not want to
359 take this action.
360
361 Regards,
362 All at ###SITENAME###
363 ###SITEURL###',
364 ],
365 'new_subject' => '[{param1}] Confirm Action.php: {param2}',
366 'new_body' => 'Howdy,
367 <br>
368 <br>
369 A request has been made to perform the following action on your account:
370 <br>
371 <br>
372 {param3}
373 <br>
374 <br>
375 To confirm this, please click on the following link:
376 {param4}
377 <br>
378 <br>
379 You can safely ignore and delete this email if you do not want to
380 take this action.
381 <br>
382 <br>
383 Regards,
384 All at {param5}
385 {param6}',
386 'description' => 'ACYM_OVERRIDE_DESC_ACTION_CONFIRMATION',
387 'source' => 'wordpress',
388 ],
389 [
390 'name' => 'wp-personalDataExport',
391 'base_subject' => [
392 '[%s] Personal Data Export',
393 ],
394 'base_body' => [
395 'Howdy,
396
397 Your request for an export of personal data has been completed. You may
398 download your personal data by clicking on the link below. For privacy
399 and security, we will automatically delete the file on ###EXPIRATION###,
400 so please download it before then.
401
402 ###LINK###
403
404 Regards,
405 All at ###SITENAME###
406 ###SITEURL###',
407 ],
408 'new_subject' => '[{param1}] Personal Data Export',
409 'new_body' => 'Howdy,
410 <br>
411 <br>
412 Your request for an export of personal data has been completed. You may
413 download your personal data by clicking on the link below. For privacy
414 and security, we will automatically delete the file on {param2},
415 so please download it before then.
416 <br>
417 <br>
418 {param3}
419 <br>
420 <br>
421 Regards,
422 All at {param4}
423 {param5}',
424 'description' => 'ACYM_OVERRIDE_DESC_DATA_EXPORT',
425 'source' => 'wordpress',
426 ],
427 ];
428
429 acym_trigger('onAcymGetEmailOverrides', [&$emailOverrides]);
430
431 return $emailOverrides;
432 }
433
434 function acym_getOverrideParamsByName(string $name): array
435 {
436 $overridesParamsAll = [
437 'wp-adminNewUserAdmin' => [
438 'param1' => [
439 'nicename' => acym_translation('ACYM_SITE_NAME'),
440 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
441 ],
442 'param3' => [
443 'nicename' => acym_translation('ACYM_USERNAME'),
444 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
445 ],
446 'param4' => [
447 'nicename' => acym_translation('ACYM_EMAIL'),
448 'description' => acym_translation('ACYM_EMAIL_OVERRIDE_DESC'),
449 ],
450 ],
451 'wp-newUser' => [
452 'param1' => [
453 'nicename' => acym_translation('ACYM_SITE_NAME'),
454 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
455 ],
456 'param2' => [
457 'nicename' => acym_translation('ACYM_USERNAME'),
458 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
459 ],
460 'param3' => [
461 'nicename' => acym_translation('ACYM_LOGIN_URL'),
462 'description' => acym_translation('ACYM_LOGIN_URL_OVERRIDE_DESC'),
463 ],
464 ],
465 'wp-passwordChangeNotif' => [
466 'param1' => [
467 'nicename' => acym_translation('ACYM_SITE_NAME'),
468 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
469 ],
470 'param2' => [
471 'nicename' => acym_translation('ACYM_USERNAME'),
472 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
473 ],
474 'param4' => [
475 'nicename' => acym_translation('ACYM_ADMIN_EMAIL'),
476 'description' => acym_translation('ACYM_ADMIN_EMAIL_OVERRIDE_DESC'),
477 ],
478 'param5' => [
479 'nicename' => acym_translation('ACYM_USER_EMAIL'),
480 'description' => acym_translation('ACYM_USER_EMAIL_OVERRIDE_DESC'),
481 ],
482 'param7' => [
483 'nicename' => acym_translation('ACYM_SITE_URL'),
484 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
485 ],
486 ],
487 'wp-emailChangeNotif' => [
488 'param1' => [
489 'nicename' => acym_translation('ACYM_SITE_NAME'),
490 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
491 ],
492 'param2' => [
493 'nicename' => acym_translation('ACYM_USERNAME'),
494 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
495 ],
496 'param4' => [
497 'nicename' => acym_translation('ACYM_USER_NEW_EMAIL'),
498 'description' => acym_translation('ACYM_USER_NEW_EMAIL_OVERRIDE_DESC'),
499 ],
500 'param5' => [
501 'nicename' => acym_translation('ACYM_ADMIN_EMAIL'),
502 'description' => acym_translation('ACYM_ADMIN_EMAIL_OVERRIDE_DESC'),
503 ],
504 'param6' => [
505 'nicename' => acym_translation('ACYM_USER_EMAIL'),
506 'description' => acym_translation('ACYM_USER_EMAIL_OVERRIDE_DESC'),
507 ],
508 'param7' => [
509 'nicename' => acym_translation('ACYM_SITE_URL'),
510 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
511 ],
512 ],
513 'wp-passwordUserChangeNotifAdmin' => [
514 'param1' => [
515 'nicename' => acym_translation('ACYM_SITE_NAME'),
516 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
517 ],
518 'param2' => [
519 'nicename' => acym_translation('ACYM_USERNAME'),
520 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
521 ],
522 ],
523 'wp-adminNotifUserRequestConfirm' => [
524 'param1' => [
525 'nicename' => acym_translation('ACYM_SITE_NAME'),
526 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
527 ],
528 'param2' => [
529 'nicename' => acym_translation('ACYM_ACTION'),
530 'description' => acym_translation('ACYM_ACTION_OVERRIDE_DESC'),
531 ],
532 'param4' => [
533 'nicename' => acym_translation('ACYM_USER_EMAIL'),
534 'description' => acym_translation('ACYM_USER_EMAIL_OVERRIDE_DESC'),
535 ],
536 'param6' => [
537 'nicename' => acym_translation('ACYM_MANAGE_URL'),
538 'description' => acym_translation('ACYM_MANAGE_URL_OVERRIDE_DESC'),
539 ],
540 'param8' => [
541 'nicename' => acym_translation('ACYM_SITE_URL'),
542 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
543 ],
544 ],
545 'wp-userErasureRequestConfirm1' => [
546 'param1' => [
547 'nicename' => acym_translation('ACYM_SITE_NAME'),
548 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
549 ],
550 'param4' => [
551 'nicename' => acym_translation('ACYM_SITE_URL'),
552 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
553 ],
554 ],
555 'wp-UserErasureRequestConfirm2' => [
556 'param1' => [
557 'nicename' => acym_translation('ACYM_SITE_NAME'),
558 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
559 ],
560 'param3' => [
561 'nicename' => acym_translation('ACYM_PRIVACY_POLICY_URL'),
562 'description' => acym_translation('ACYM_PRIVACY_POLICY_URL_OVERRIDE_DESC'),
563 ],
564 'param5' => [
565 'nicename' => acym_translation('ACYM_SITE_URL'),
566 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
567 ],
568 ],
569 'wp-userPasswordRetrieveRequest' => [
570 'param1' => [
571 'nicename' => acym_translation('ACYM_SITE_NAME'),
572 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
573 ],
574 'param3' => [
575 'nicename' => acym_translation('ACYM_USERNAME'),
576 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
577 ],
578 'param4' => [
579 'nicename' => acym_translation('ACYM_LINK_RESET_PASSWORD'),
580 'description' => acym_translation('ACYM_LINK_RESET_PASSWORD_OVERRIDE_DESC'),
581 ],
582 'param5' => [
583 'nicename' => acym_translation('ACYM_IP_ADDRESS'),
584 'description' => acym_translation('ACYM_IP_ADDRESS_OVERRIDE_DESC'),
585 ],
586 ],
587 'wp-userResetEmailRequest' => [
588 'param1' => [
589 'nicename' => acym_translation('ACYM_SITE_NAME'),
590 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
591 ],
592 'param2' => [
593 'nicename' => acym_translation('ACYM_USERNAME'),
594 'description' => acym_translation('ACYM_USERNAME_OVERRIDE_DESC'),
595 ],
596 'param3' => [
597 'nicename' => acym_translation('ACYM_ADMIN_URL'),
598 'description' => acym_translation('ACYM_ADMIN_URL_OVERRIDE_DESC'),
599 ],
600 'param4' => [
601 'nicename' => acym_translation('ACYM_USER_EMAIL'),
602 'description' => acym_translation('ACYM_USER_EMAIL_OVERRIDE_DESC'),
603 ],
604 'param6' => [
605 'nicename' => acym_translation('ACYM_SITE_URL'),
606 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
607 ],
608 ],
609 'wp-userRequestConfirmAction' => [
610 'param1' => [
611 'nicename' => acym_translation('ACYM_SITE_NAME'),
612 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
613 ],
614 'param2' => [
615 'nicename' => acym_translation('ACYM_ACTION'),
616 'description' => acym_translation('ACYM_ACTION_OVERRIDE_DESC'),
617 ],
618 'param4' => [
619 'nicename' => acym_translation('ACYM_ACTION_CONFIRM_URL'),
620 'description' => acym_translation('ACYM_ACTION_CONFIRM_URL_OVERRIDE_DESC'),
621 ],
622 'param6' => [
623 'nicename' => acym_translation('ACYM_SITE_URL'),
624 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
625 ],
626 ],
627 'wp-personalDataExport' => [
628 'param1' => [
629 'nicename' => acym_translation('ACYM_SITE_NAME'),
630 'description' => acym_translation('ACYM_SITE_NAME_OVERRIDE_DESC'),
631 ],
632 'param2' => [
633 'nicename' => acym_translation('ACYM_EXPIRATION_DATE'),
634 'description' => acym_translation('ACYM_EXPIRATION_DATE_OVERRIDE_DESC'),
635 ],
636 'param3' => [
637 'nicename' => acym_translation('ACYM_LINK_EXPORT_FILE'),
638 'description' => acym_translation('ACYM_LINK_EXPORT_FILE_OVERRIDE_DESC'),
639 ],
640 'param5' => [
641 'nicename' => acym_translation('ACYM_SITE_URL'),
642 'description' => acym_translation('ACYM_SITE_URL_OVERRIDE_DESC'),
643 ],
644 ],
645 ];
646
647 acym_trigger('onAcymGetEmailOverridesParams', [&$overridesParamsAll]);
648
649 if (empty($overridesParamsAll[$name])) return [];
650
651 return $overridesParamsAll[$name];
652 }
653