golden hour
/home/godaofbq/beyondhyperbarics.com/wp-content/plugins/image-sizes/app
⬆️ Go Up
Upload
File/Folder
Size
Actions
AJAX.php
1.81 KB
Del
OK
Admin.php
9.18 KB
Del
OK
Cron.php
1.17 KB
Del
OK
Front.php
1.16 KB
Del
OK
Modules.php
1.76 KB
Del
OK
Settings.php
4.25 KB
Del
OK
Wizard.php
3.62 KB
Del
OK
Edit: Cron.php
<?php namespace Codexpert\ThumbPress\App; use Codexpert\Plugin\Base; /** * if accessed directly, exit. */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @package Plugin * @subpackage Cron * @author Codexpert <hi@codexpert.io> */ class Cron extends Base { public $plugin; public $slug; public $name; public $server; public $version; /** * Constructor function */ public function __construct( $plugin ) { $this->plugin = $plugin; $this->slug = $this->plugin['TextDomain']; $this->name = $this->plugin['Name']; $this->server = $this->plugin['server']; $this->version = $this->plugin['Version']; } /** * Installer. Runs once when the plugin in activated. * * @since 1.0 */ public function install() { /** * Schedule an event to sync help docs */ if ( ! wp_next_scheduled( 'codexpert-daily' ) ) { wp_schedule_event( time(), 'daily', 'codexpert-daily' ); } update_option( "{$this->slug}_install_time", time() ); } /** * Uninstaller. Runs once when the plugin in deactivated. * * @since 1.0 */ public function uninstall() { /** * Remove scheduled hooks */ wp_clear_scheduled_hook( 'codexpert-daily' ); } }
Save