-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprogress-planner.php
More file actions
46 lines (42 loc) · 1.23 KB
/
progress-planner.php
File metadata and controls
46 lines (42 loc) · 1.23 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* A plugin to help you fight procrastination and get things done.
*
* @package Progress_Planner
*
* Plugin name: Progress Planner
* Plugin URI: https://prpl.fyi/home
* Description: A plugin to help you fight procrastination and get things done.
* Requires at least: 6.7
* Requires PHP: 7.4
* Version: 1.9.0
* Author: Team Emilia Projects
* Author URI: https://prpl.fyi/about
* License: GPL-3.0+
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: progress-planner
*/
// Exit if accessed directly.
if ( ! \defined( 'ABSPATH' ) ) {
exit;
}
\define( 'PROGRESS_PLANNER_FILE', __FILE__ );
\define( 'PROGRESS_PLANNER_DIR', __DIR__ );
\define( 'PROGRESS_PLANNER_URL', \untrailingslashit( \plugin_dir_url( __FILE__ ) ) );
require_once PROGRESS_PLANNER_DIR . '/autoload.php';
if ( ! \function_exists( 'progress_planner' ) ) {
/**
* Get the progress planner instance.
*
* @return \Progress_Planner\Base
*/
function progress_planner() {
global $progress_planner;
if ( ! $progress_planner ) {
$progress_planner = new \Progress_Planner\Base();
$progress_planner->init();
}
return $progress_planner;
}
}
\progress_planner();