-
Notifications
You must be signed in to change notification settings - Fork 0
/
projectpress.php
61 lines (55 loc) · 1.3 KB
/
projectpress.php
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Plugin Name: ProjectPress - projects manager
* Plugin URI: https://mofsy.ru/projects/projectpress
* Description: Плагин добавляющий систему управления проектами на сайт под управлением WordPress.
* Version: 0.1.0.1
* Author: Mofsy
* Author URI: https://mofsy.ru
* Text Domain: projectpress
* Domain Path: /languages
* Copyright: 2018-2019 © Oleg Budrin (Mofsy)
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* @package Projectpress
**/
if ( ! defined( 'ABSPATH' ) )
{
exit;
}
/**
* Plugin Dir
*/
if ( ! defined( 'PROJECTPRESS_PLUGIN_DIR' ) )
{
define( 'PROJECTPRESS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
/**
* Plugin Name
*/
if ( ! defined( 'PROJECTPRESS_PLUGIN_NAME' ) )
{
define( 'PROJECTPRESS_PLUGIN_NAME', plugin_basename( __FILE__ ) );
}
/**
* Include the main Projectpress class.
*/
if ( !class_exists( 'Projectpress' ) )
{
include_once PROJECTPRESS_PLUGIN_DIR . '/includes/class-projectpress.php';
}
/**
* Main instance of Projectpress.
* Returns the main instance of ProjectPress to prevent the need to use globals.
*
* @return Projectpress
*/
function projectpress()
{
return Projectpress::instance();
}
/**
* Run
*/
$projectpress = projectpress();