Server IP : 172.67.216.182 / Your IP : 172.70.208.31 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lapma.in/wp-content/plugins/everest-forms/includes/ |
Upload File : |
<?php /** * Everest Forms Cron * * @package EverestForms * @since 1.9.8 */ defined( 'ABSPATH' ) || exit; /** * EVF_Cron Class * * This class handles scheduled events */ class EVF_Cron { /** * Init WordPress hook * * @see EVF_Cron::weekly_events() */ public function __construct() { add_filter( 'cron_schedules', array( $this, 'add_schedules' ) ); add_action( 'init', array( $this, 'schedule_events' ) ); } /** * Registers new cron schedules * * @param array $schedules Schedules. */ public function add_schedules( $schedules = array() ) { // Adds once in biweekly to the existing schedules. $schedules['biweekly'] = array( 'interval' => ( DAY_IN_SECONDS * 15 ), 'display' => __( 'Every 15 days', 'everest-forms' ), ); // Adds once in a day to the existing schedules. $schedules['evf_daily'] = array( 'interval' => \DAY_IN_SECONDS, 'display' => esc_html__( 'Email entries summary once a day', 'everest-forms' ), ); // Adds once a week in to the existing schedules. $schedules['evf_weekly'] = array( 'interval' => \WEEK_IN_SECONDS, 'display' => esc_html__( 'Email entries summary once a week', 'everest-forms' ), ); // Adds once a month in the existing schedules. $schedules['evf_monthly'] = array( 'interval' => \MONTH_IN_SECONDS, 'display' => esc_html__( 'Email entries summary once a month', 'everest-forms' ), ); return $schedules; } /** * Schedules our events * * @return void */ public function schedule_events() { $this->biweekly_events(); } /** * Schedule biweekly events * * @return void */ private function biweekly_events() { if ( ! wp_next_scheduled( 'everest_forms_biweekly_scheduled_events' ) ) { wp_schedule_event( time(), 'biweekly', 'everest_forms_biweekly_scheduled_events' ); } } } $everest_forms_cron = new EVF_Cron();