-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfluent-shiftflow.php
More file actions
32 lines (27 loc) · 1.25 KB
/
Copy pathfluent-shiftflow.php
File metadata and controls
32 lines (27 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php defined('ABSPATH') or die;
/**
* Plugin Name: Fluent ShiftFlow
* Description: ShiftFlow is an internal tool that helps support teams manage shifts, leave, and real-time availability in one place. With flexible shift settings and built-in analytics, it removes manual coordination, improves coverage visibility, and helps teams operate smoothly every day.
* Version: 1.0.0
* Author: WPManageNinja LLC
* Author URI: https://wpmanageninja.com
* Plugin URI: https://shiftflow.wpmanageninja.com
* License: GPLv2 or later
* Text Domain: fluent-shiftflow
* Domain Path: /language
*/
define('FLUENT_SHIFTFLOW_VERSION', '1.0.0');
define('FLUENT_SHIFTFLOW_PLUGIN_URL', plugin_dir_url(__FILE__));
define('FLUENT_SHIFTFLOW_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('FLUENT_SHIFTFLOW_UPLOAD_DIR', 'fluent-shiftflow');
require __DIR__ . '/vendor/autoload.php';
call_user_func(function ($bootstrap) {
$bootstrap(__FILE__);
}, require(__DIR__ . '/boot/app.php'));
add_action('wp_insert_site', function ($new_site) {
if (is_plugin_active_for_network('fluent-shiftflow/fluent-shiftflow.php')) {
switch_to_blog($new_site->blog_id);
(new \FluentShiftFlow\App\Hooks\Handlers\ActivationHandler)->handle(false);
restore_current_blog();
}
});