| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
/** |
| 6 |
* @var $app FluentCommunity\Framework\Foundation\Application |
| 7 |
*/ |
| 8 |
|
| 9 |
(new \FluentCommunity\App\Hooks\Handlers\PortalHandler())->register(); |
| 10 |
(new \FluentCommunity\App\Hooks\Handlers\CustomizerHander())->register(); |
| 11 |
(new \FluentCommunity\App\Hooks\Handlers\PortalSettingsHandler())->register(); |
| 12 |
(new \FluentCommunity\App\Hooks\Handlers\NotificationEventHandler())->register(); |
| 13 |
(new \FluentCommunity\App\Hooks\Handlers\EmailNotificationHandler())->register(); |
| 14 |
(new \FluentCommunity\App\Hooks\Handlers\ActivityMonitorHandler())->register(); |
| 15 |
(new \FluentCommunity\App\Hooks\Handlers\Scheduler())->register(); |
| 16 |
(new \FluentCommunity\App\Hooks\Handlers\CleanupHandler())->register(); |
| 17 |
(new \FluentCommunity\App\Hooks\Handlers\FluentBlockEditorHandler())->register(); |
| 18 |
(new \FluentCommunity\App\Hooks\Handlers\LessonVideoGateHandler())->register(); |
| 19 |
|
| 20 |
// Rate limit handler |
| 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 |
} |
| 31 |
|