File manager - Edit - /home/buyherba/public_html/wp-content/plugins/external-importer/application/components/Scheduler.php
Back
<?php namespace ExternalImporter\application\components; defined('\ABSPATH') || exit; /** * Scheduler class file * * @author keywordrush.com <support@keywordrush.com> * @link https://www.keywordrush.com * @copyright Copyright © 2025 keywordrush.com */ abstract class Scheduler implements iScheduler { public static function initAction() { \add_action(static::getCronTag(), array(get_called_class(), 'run')); } public static function addScheduleEvent($recurrence = 'hourly', $timestamp = null) { if (!$timestamp) $timestamp = time(); if (!\wp_next_scheduled(static::getCronTag())) \wp_schedule_event($timestamp, $recurrence, static::getCronTag()); } public static function clearScheduleEvent() { if (\wp_next_scheduled(static::getCronTag())) \wp_clear_scheduled_hook(static::getCronTag()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.09 |
proxy
|
phpinfo
|
Settings