Files
unsupervised-scheduler/unsupervised-schedular.php
T
thatguygriffandClaude Opus 5 2be3ba8787
Release / Build and Publish Release (push) Successful in 19s
Release / Open next-version bump PR (push) Skipped
Release candidate 1.5.5-rc.1
Version header for a prerelease tag that exercises release.yml end to end
inside the shared CI image. Gitea flags hyphenated versions as prereleases
and UpdateChecker reads /releases/latest, which excludes them, so no site is
offered this build.

Deliberately not merged to main: main stays on 1.5.5, and the release
workflow skips its version-bump job for hyphenated tags.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01D9acV1mHktGAb1uyvNmrR2
2026-08-24 22:46:42 -03:00

45 lines
1.3 KiB
PHP

<?php
/**
* Plugin Name: Unsupervised Scheduler
* Plugin URI: https://git.unsupervised.ca/Unsupervised/unsupervised-scheduler
* Description: Instructor/student lesson scheduling for WordPress.
* Version: 1.5.5-rc.1
* Requires at least: 6.2
* Requires PHP: 8.1
* Author: Unsupervised
* Author URI: https://unsupervised.ca
* License: GPL-2.0-or-later
* Text Domain: unsupervised-schedular
* Update URI: https://git.unsupervised.ca/Unsupervised/unsupervised-scheduler
*/
declare(strict_types=1);
namespace Unsupervised\Schedular;
if (! defined('ABSPATH')) {
exit;
}
define('USC_VERSION', '1.5.5-rc.1');
define('USC_PLUGIN_FILE', __FILE__);
define('USC_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('USC_PLUGIN_URL', plugin_dir_url(__FILE__));
define('USC_TABLE_AVAILABILITY', $GLOBALS['wpdb']->prefix . 'us_availability');
define('USC_TABLE_LESSONS', $GLOBALS['wpdb']->prefix . 'us_lessons');
require_once USC_PLUGIN_DIR . 'vendor/autoload.php';
register_activation_hook(__FILE__, static function (): void {
(new Installer())->run();
});
register_deactivation_hook(__FILE__, static function (): void {
wp_clear_scheduled_hook('us_generate_due_payments');
flush_rewrite_rules();
});
add_action('plugins_loaded', static function (): void {
Plugin::boot();
});