PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/burst-statistics/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/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; }