CI / No Debug Code (pull_request) Successful in 2s
CI / Tests (PHP 8.2) (pull_request) Successful in 38s
CI / Tests (PHP 8.1) (pull_request) Successful in 41s
CI / Coding Standards (pull_request) Successful in 2m50s
CI / PHPStan (pull_request) Successful in 2m48s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m34s
CI / Build Plugin Zip (pull_request) Skipped
Version header, USC_VERSION, and the README version line move from 1.0.0-rc.3 (README was stale at rc.1) to 1.0.0. Tag v1.0.0 on the merge commit to publish the release. Co-Authored-By: Claude Fable 5 <[email protected]>
43 lines
1.1 KiB
PHP
43 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
|
|
* Requires at least: 6.2
|
|
* Requires PHP: 8.1
|
|
* Author: Unsupervised
|
|
* 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.0.0');
|
|
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();
|
|
});
|