| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | * @var $app FluentCommunity\Framework\Foundation\Application |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | (new \FluentCommunity\App\Hooks\Handlers\PortalHandler())->register(); |
| 10 | +(new \FluentCommunity\App\Hooks\Handlers\CustomizerHander())->register(); | |
| 10 | 11 | (new \FluentCommunity\App\Hooks\Handlers\PortalSettingsHandler())->register(); |
| 11 | 12 | (new \FluentCommunity\App\Hooks\Handlers\NotificationEventHandler())->register(); |
| 12 | 13 | (new \FluentCommunity\App\Hooks\Handlers\EmailNotificationHandler())->register(); |
| 13 | 14 | (new \FluentCommunity\App\Hooks\Handlers\ActivityMonitorHandler())->register(); |
| @@ -12,7 +13,18 @@ | ||
| 12 | 13 | (new \FluentCommunity\App\Hooks\Handlers\EmailNotificationHandler())->register(); |
| 13 | 14 | (new \FluentCommunity\App\Hooks\Handlers\ActivityMonitorHandler())->register(); |
| 14 | 15 | (new \FluentCommunity\App\Hooks\Handlers\Scheduler())->register(); |
| 15 | 16 | (new \FluentCommunity\App\Hooks\Handlers\CleanupHandler())->register(); |
| 17 | +(new \FluentCommunity\App\Hooks\Handlers\FluentBlockEditorHandler())->register(); | |
| 18 | +(new \FluentCommunity\App\Hooks\Handlers\LessonVideoGateHandler())->register(); | |
| 16 | 19 | |
| 17 | 20 | // Rate limit handler |
| 18 | 21 | (new \FluentCommunity\App\Hooks\Handlers\RateLimitHandler())->register(); |
| 22 | + | |
| 23 | + | |
| 24 | +if (defined('WP_CLI') && WP_CLI) { | |
| 25 | + \WP_CLI::add_command('fluent_community', '\FluentCommunity\App\Hooks\CLI\Commands'); | |
| 26 | + // Add Fluent CLI commands | |
| 27 | + if (defined('WP_DEBUG') && WP_DEBUG) { | |
| 28 | + \WP_CLI::add_command('fluent_community_dummy', '\FluentCommunity\App\Hooks\CLI\DymmyCommands'); | |
| 29 | + } | |
| 30 | +} | |