CI / Tests (PHP 8.1) (pull_request) Successful in 45s
CI / Tests (PHP 8.2) (pull_request) Successful in 44s
CI / No Debug Code (pull_request) Successful in 2s
CI / Coding Standards (pull_request) Successful in 2m43s
CI / PHPStan (pull_request) Successful in 2m51s
CI / Tests (PHP 8.3) (pull_request) Successful in 2m34s
CI / Build Plugin Zip (pull_request) Skipped
Closes #65 Declare an Update URI header and answer core's update_plugins_{hostname} filter from a new Update\UpdateChecker that offers the latest published Gitea release's zip asset when it is newer than the installed version, with transient caching and silent degradation on API failures. Add a release workflow that fires on v* tag pushes: verifies the tag matches the plugin Version header, runs the tests, builds the plugin zip, and attaches it to the release (reusing a UI-created release, flagging hyphenated versions as pre-release so /releases/latest skips them). Co-Authored-By: Claude Fable 5 <[email protected]>
20 lines
445 B
PHP
20 lines
445 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
if (! defined('WP_UNINSTALL_PLUGIN')) {
|
|
exit;
|
|
}
|
|
|
|
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
|
|
|
|
global $wpdb;
|
|
|
|
$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}us_lessons");
|
|
$wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}us_availability");
|
|
|
|
remove_role('us_instructor');
|
|
remove_role('us_student');
|
|
|
|
delete_option('us_schedular_version');
|
|
delete_transient('us_schedular_latest_release');
|