HEX
Server: LiteSpeed
System: Linux ubuntu-8gb-hel1-1 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: root (0)
PHP: 8.3.24
Disabled: 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
Upload Files
File: /mnt/HC_Volume_101697859/livrariaeconomica.com.br/wp-content/plugins/burst-statistics/cron.php
<?php
defined( 'ABSPATH' ) or die();

/**
 * Schedule cron jobs if useCron is true
 * Else start the functions.
 */
add_action( 'plugins_loaded', 'burst_schedule_cron' );
function burst_schedule_cron() {
	if ( ! wp_next_scheduled( 'burst_every_5_minutes' ) ) {
		wp_schedule_event( time(), 'burst_every_5_minutes', 'burst_every_5_minutes' );
	}
	if ( ! wp_next_scheduled( 'burst_every_hour' ) ) {
		wp_schedule_event( time(), 'burst_every_hour', 'burst_every_hour' );
	}
	if ( ! wp_next_scheduled( 'burst_daily' ) ) {
		wp_schedule_event( time(), 'burst_daily', 'burst_daily' );
	}
	if ( ! wp_next_scheduled( 'burst_weekly' ) ) {
		wp_schedule_event( time(), 'burst_weekly', 'burst_weekly' );
	}
}

add_filter( 'cron_schedules', 'burst_filter_cron_schedules' );
function burst_filter_cron_schedules( $schedules ) {
	$schedules['burst_every_5_minutes'] = array(
		'interval' => 300,
		'display'  => __( 'Once every 5 minutes' ),
	);
	$schedules['burst_daily']      = array(
		'interval' => DAY_IN_SECONDS,
		'display'  => __( 'Once every day' ),
	);
	$schedules['burst_every_hour'] = array(
		'interval' => HOUR_IN_SECONDS,
		'display'  => __( 'Once every hour' ),
	);
	$schedules['burst_weekly'] = array(
		'interval' => WEEK_IN_SECONDS,
		'display'  => __( 'Once every week' ),
	);

	return $schedules;
}