Feat: Implement Admin class structure and instantiate in Plugin

This commit is contained in:
2025-04-18 18:29:11 +01:00
parent bcdbbb454c
commit b18f1c46b4
2 changed files with 60 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
namespace WPALLSTARS\PluginStarterTemplate;
use WPALLSTARS\PluginStarterTemplate\Admin\Admin;
/**
* Plugin class
*/
@@ -19,6 +21,13 @@ class Plugin {
*/
private $core;
/**
* Admin instance
*
* @var Admin
*/
private $admin;
/**
* Plugin file
*
@@ -43,6 +52,7 @@ class Plugin {
$this->plugin_file = $plugin_file;
$this->version = $version;
$this->core = new Core();
$this->admin = new Admin( $this->core );
}
/**