-
Notifications
You must be signed in to change notification settings - Fork 0
/
brief.php
48 lines (40 loc) · 1.25 KB
/
brief.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
<?php
/**
* @link https://github.com/andreymatin
* @since 1.0.1
* @package Brief
*
* @wordpress-plugin
* Plugin Name: Brief
* Plugin URI: https://github.com/andreymatin/wp-brief
* Description: Development reports and documentation
* Version: 1.0.1
* Author: Andrew Matin
* Author URI: https://github.com/andreymatin
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: brief
**/
if (!defined('ABSPATH')) {
exit;
}
define('BRIEF_VERSION', '1.0.1');
// Global Options Variable
$brief_options = get_option('brief_settings');
if (is_admin()) {
require_once(plugin_dir_path(__FILE__) . '/includes/brief-scripts.php');
require_once(plugin_dir_path(__FILE__) . '/includes/brief-widget.php');
require_once(plugin_dir_path(__FILE__) . '/includes/brief-settings.php');
/**
* Add Settings Link
*
* @param [type] $links
* @return void
*/
function brief_settings($links)
{
$links[] = '<a href="' . admin_url('options-general.php?page=brief-options') . '">' . __('Settings') . '</a>';
return $links;
}
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'brief_settings');
}