PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.11.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.11.1
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 / miscellaneous.php

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

64 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 function acym_addBreadcrumb(string $title, string $link = ''): void
4 {
5 }
6
7 function acym_setPageTitle(string $title): void
8 {
9 }
10
11 function acym_isLeftMenuNecessary(): bool
12 {
13 return false;
14 }
15
16 function acym_getLeftMenu(string $name): string
17 {
18 return '';
19 }
20
21 function acym_isPluginActive(string $plugin, string $family = 'system'): bool
22 {
23 return true;
24 }
25
26 function acym_disableCmsEditor(): void
27 {
28 add_filter(
29 'user_can_richedit',
30 function ($a) {
31 return false;
32 },
33 50
34 );
35 }
36
37 function acym_isElementorEdition(): bool
38 {
39 global $post;
40
41 if (empty($post) || !class_exists('\\Elementor\\Plugin')) return false;
42
43 return \Elementor\Plugin::$instance->db->is_built_with_elementor($post->ID);
44 }
45
46 function acym_scheduleTask(array $options, int $taskId = 0): ?int
47 {
48 if (wp_next_scheduled($options['name'])) {
49 return 1;
50 }
51
52 return true === wp_schedule_event(time(), $options['taskFrequency'], $options['name']) ? 1 : 0;
53 }
54
55 function acym_deleteScheduledTask(array $options): bool
56 {
57 $timestamp = wp_next_scheduled($options['name']);
58 if ($timestamp) {
59 return true === wp_unschedule_event($timestamp, $options['name']);
60 }
61
62 return true;
63 }
64