PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.5.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.5.3
3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / includes / class-evf-cron.php
everest-forms / includes Last commit date
Helpers 1 year ago Integrations 1 week ago RestApi 1 month ago abilities 1 month ago abstracts 1 month ago admin 1 week ago blocks 1 year ago elementor 2 years ago export 3 months ago fields 1 week ago interfaces 8 years ago libraries 2 years ago log-handlers 1 year ago shortcodes 1 month ago stats 6 months ago templates 4 months ago traits 1 month ago class-everest-forms.php 1 week ago class-evf-addon-upsell.php 1 month ago class-evf-ajax.php 1 week ago class-evf-autoloader.php 8 years ago class-evf-background-process-import-entries.php 2 years ago class-evf-background-updater.php 8 years ago class-evf-cache-helper.php 3 months ago class-evf-cron.php 2 years ago class-evf-deprecated-action-hooks.php 6 years ago class-evf-deprecated-filter-hooks.php 5 years ago class-evf-email-entries-report.php 4 months ago class-evf-emails.php 1 month ago class-evf-fields.php 1 month ago class-evf-form-handler.php 1 month ago class-evf-form-task.php 1 month ago class-evf-forms-features.php 1 month ago class-evf-frontend-scripts.php 1 month ago class-evf-install.php 3 months ago class-evf-integrations.php 4 months ago class-evf-log-levels.php 8 years ago class-evf-logger.php 5 years ago class-evf-post-types.php 1 year ago class-evf-privacy.php 6 years ago class-evf-report-cron.php 3 months ago class-evf-reporting.php 3 months ago class-evf-session-handler.php 7 years ago class-evf-shortcodes.php 1 year ago class-evf-smart-tags.php 10 months ago class-evf-template-loader.php 1 year ago class-evf-validation.php 6 years ago evf-conditional-functions.php 6 years ago evf-core-functions.php 1 month ago evf-deprecated-functions.php 6 years ago evf-entry-functions.php 5 months ago evf-formatting-functions.php 4 years ago evf-notice-functions.php 4 years ago evf-template-functions.php 4 years ago evf-template-hooks.php 8 years ago evf-update-functions.php 5 years ago
class-evf-cron.php
84 lines
1 <?php
2 /**
3 * Everest Forms Cron
4 *
5 * @package EverestForms
6 * @since 1.9.8
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 /**
12 * EVF_Cron Class
13 *
14 * This class handles scheduled events
15 */
16 class EVF_Cron {
17
18
19 /**
20 * Init WordPress hook
21 *
22 * @see EVF_Cron::weekly_events()
23 */
24 public function __construct() {
25 add_filter( 'cron_schedules', array( $this, 'add_schedules' ) );
26 add_action( 'init', array( $this, 'schedule_events' ) );
27 }
28
29 /**
30 * Registers new cron schedules
31 *
32 * @param array $schedules Schedules.
33 */
34 public function add_schedules( $schedules = array() ) {
35 // Adds once in biweekly to the existing schedules.
36 $schedules['biweekly'] = array(
37 'interval' => ( DAY_IN_SECONDS * 15 ),
38 'display' => __( 'Every 15 days', 'everest-forms' ),
39 );
40
41 // Adds once in a day to the existing schedules.
42 $schedules['evf_daily'] = array(
43 'interval' => \DAY_IN_SECONDS,
44 'display' => esc_html__( 'Email entries summary once a day', 'everest-forms' ),
45 );
46
47 // Adds once a week in to the existing schedules.
48 $schedules['evf_weekly'] = array(
49 'interval' => \WEEK_IN_SECONDS,
50 'display' => esc_html__( 'Email entries summary once a week', 'everest-forms' ),
51 );
52
53 // Adds once a month in the existing schedules.
54 $schedules['evf_monthly'] = array(
55 'interval' => \MONTH_IN_SECONDS,
56 'display' => esc_html__( 'Email entries summary once a month', 'everest-forms' ),
57 );
58
59 return $schedules;
60 }
61
62 /**
63 * Schedules our events
64 *
65 * @return void
66 */
67 public function schedule_events() {
68 $this->biweekly_events();
69 }
70
71 /**
72 * Schedule biweekly events
73 *
74 * @return void
75 */
76 private function biweekly_events() {
77 if ( ! wp_next_scheduled( 'everest_forms_biweekly_scheduled_events' ) ) {
78 wp_schedule_event( time(), 'biweekly', 'everest_forms_biweekly_scheduled_events' );
79 }
80 }
81 }
82
83 $everest_forms_cron = new EVF_Cron();
84