register([ \WpAi\AgentWp\Installer::class, \WpAi\AgentWp\Registry\Hooks::class, \WpAi\AgentWp\Page\Admin\Settings::class, \WpAi\AgentWp\Page\Admin\Chat::class, // \WpAi\AgentWp\Page\Frontend\Chat::class, \WpAi\AgentWp\Registry\IndexSiteData::class, \WpAi\AgentWp\Registry\IndexSiteSummary::class, \WpAi\AgentWp\Registry\IndexThemeJson::class, \WpAi\AgentWp\Registry\IndexSiteDocs::class, \WpAi\AgentWp\Registry\Router::class, \WpAi\AgentWp\Registry\WpUser::class, ]); add_action('current_screen', function () use ($registry) { $registry->register([ \WpAi\AgentWp\Page\Admin\DashboardWidget::class, ]); }); }