cbf05fe363
CI / Coding Standards (pull_request) Successful in 55s
CI / PHPStan (pull_request) Successful in 1m4s
CI / Tests (PHP 8.1) (pull_request) Successful in 50s
CI / Tests (PHP 8.2) (pull_request) Successful in 45s
CI / Tests (PHP 8.3) (pull_request) Successful in 48s
CI / No Debug Code (pull_request) Successful in 2s
CI / Build Plugin Zip (pull_request) Has been skipped
Reflect the in-progress, pre-release state. Bump to 1.0.0 before tagging a release. Updates both the plugin header and USC_VERSION; the build/CI zip artifact name tracks this automatically. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Unsupervised Scheduler
|
|
* Plugin URI: https://unsupervised.ca
|
|
* Description: Instructor/student lesson scheduling for WordPress.
|
|
* Version: 1.0.0-rc.1
|
|
* Requires at least: 6.0
|
|
* Requires PHP: 8.1
|
|
* Author: Unsupervised
|
|
* License: GPL-2.0-or-later
|
|
* Text Domain: unsupervised-schedular
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Unsupervised\Schedular;
|
|
|
|
if (! defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
define('USC_VERSION', '1.0.0-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 {
|
|
flush_rewrite_rules();
|
|
});
|
|
|
|
add_action('plugins_loaded', static function (): void {
|
|
Plugin::boot();
|
|
});
|