whoami7 - Manager
:
/
home
/
analuakl
/
bents.in
/
wp-content
/
plugins
/
burst-statistics
/
Upload File:
files >> /home/analuakl/bents.in/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() { $useCron = true; if ( $useCron ) { 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' ); } add_action( 'burst_every_5_minutes', array( BURST()->db_upgrade, 'init' ) ); } else { //add_action( 'init', array( BURST()->statistics, 'init' ) ); } } add_filter( 'cron_schedules', 'burst_filter_cron_schedules' ); function burst_filter_cron_schedules( $schedules ) { $schedules['burst_weekly'] = array( 'interval' => WEEK_IN_SECONDS, 'display' => __( 'Once every week' ), ); $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_every_5_minutes'] = array( 'interval' => 5 * MINUTE_IN_SECONDS, 'display' => __( 'Once every 5 minutes' ), ); return $schedules; }
Copyright ©2021 || Defacer Indonesia