PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / trunk
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration vtrunk
2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 1.45 All 41 releases
fluent-boards / boot / app.php

app.php in FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration trunk, at boot/app.php

41 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 //if accessed directly exit
3 if(!defined( 'ABSPATH' )) exit;
4
5 use FluentBoards\Framework\Foundation\Application;
6 use FluentBoards\App\Hooks\Handlers\ActivationHandler;
7 use FluentBoards\App\Hooks\Handlers\DeactivationHandler;
8 use FluentBoards\App\Services\Intergrations\FluentCRM\Init;
9
10
11 return function ($file) {
12 $app = new Application($file);
13 require_once FLUENT_BOARDS_PLUGIN_PATH . 'app/Functions/helpers.php';
14
15 register_activation_hook($file, function () use ($app) {
16 ($app->make(ActivationHandler::class))->handle();
17 });
18
19 register_deactivation_hook($file, function () use ($app) {
20 ($app->make(DeactivationHandler::class))->handle();
21 });
22
23 require_once FLUENT_BOARDS_PLUGIN_PATH . 'vendor/woocommerce/action-scheduler/action-scheduler.php';
24
25 add_action('plugins_loaded', function () use ($app) {
26 do_action('fluent_boards_loaded', $app);
27 });
28
29 add_action('fluentcrm_loaded', function () {
30 new \FluentBoards\App\Services\Intergrations\FluentCRM\Init();
31 });
32
33 add_action('fluentform/loaded', function ($app) {
34 new \FluentBoards\App\Services\Intergrations\FluentFormIntegration\Bootstrap($app);
35 });
36
37 // Add this new hook for multisite support
38 add_action('wp_initialize_site', ['\FluentBoards\Database\DBMigrator', 'handle_new_site']);
39
40 };
41