register(); } public function register(): void { add_action('current_screen', array($this, 'run')); } public function run($screen) { if (advmo_is_settings_page()) : AdminHeader::getInstance(); AdminFooterTexts::getInstance(); endif; } // Prevent cloning of the instance private function __clone() {} // Prevent unserializing of the instance public function __wakeup() {} }