feat: add GitHub-powered updates to WordPress admin
Build plugin release / release (push) Failing after 4s

This commit is contained in:
2026-08-24 09:27:21 +03:30
parent 572a740d46
commit 656fc907a9
6 changed files with 342 additions and 2 deletions
+9 -1
View File
@@ -2,9 +2,11 @@
/**
* Plugin Name: Mahak Authenticate Bridge
* Plugin URI: https://github.com/dabestaniha/mahak-authenticate-bridge
* Description: Authenticate WordPress user via json web token from Mahakiha Application.
* Version: 2.1.0
* Version: 2.2.0
* Requires PHP: 7.4
* Update URI: https://github.com/dabestaniha/mahak-authenticate-bridge
* Author: Dabestaniha
*
* Example: https://wordpress.test/mahak/login/?token=eyJ0...
@@ -14,6 +16,10 @@ use Dabestaniha\AuthenticateBridge\Autoloader;
use Dabestaniha\AuthenticateBridge\App\Http\Controllers\AuthenticateController;
use Dabestaniha\AuthenticateBridge\App\Http\Controllers\SettingsPageMenuController;
use Dabestaniha\AuthenticateBridge\App\Http\Controllers\SettingsPageFormController;
use Dabestaniha\AuthenticateBridge\App\Support\PluginUpdater;
define('MAHAK_AUTHENTICATE_BRIDGE_VERSION', '2.2.0');
define('MAHAK_AUTHENTICATE_BRIDGE_FILE', __FILE__);
require_once __DIR__.'/src/Autoloader.php';
@@ -24,6 +30,8 @@ Autoloader::register([
require_once __DIR__.'/src/helpers.php';
PluginUpdater::boot();
add_action('init', fn() => AuthenticateController::resolve());
add_action('admin_menu', fn() => SettingsPageMenuController::resolve());