Updates register plugin to new pages system, bumps version

main
Yasen Pramatarov 2025-05-08 19:38:21 +03:00
parent 36e81104f1
commit 2f4b0b7aef
2 changed files with 8 additions and 6 deletions

View File

@ -1,10 +1,12 @@
<?php
// Add to allowed URLs
register_hook('filter_allowed_urls', function($urls) {
$urls[] = 'register';
return $urls;
});
// Register plugin bootstrap
// (here we add any plugin autoloader, if needed)
// List here all the controllers in "/controllers/" that we need as pages
$GLOBALS['plugin_controllers']['register'] = [
'register'
];
// Add to publicly accessible pages
register_hook('filter_public_pages', function($pages) {

View File

@ -1,6 +1,6 @@
{
"name": "Registration Plugin",
"version": "1.0.0",
"version": "1.0.1",
"enabled": true,
"description": "Provides registration functionality as a plugin."
}