-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase-plugin.php
More file actions
82 lines (70 loc) · 1.61 KB
/
base-plugin.php
File metadata and controls
82 lines (70 loc) · 1.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* Base Plugin
*
* A plugin that contains custom functionality I use often.
*
* @package Base_Plugin
* @author Big William <hello@bigwilliam.com>
* @license MIT
* @link http://bigwilliam.com/
* @copyright 2014 Big William
*
* Plugin Name: Base Plugin
* Plugin URI: http://bigwilliam.com/
* Description: A plugin with features for this website.
* Version: 1.1.0
* Author: BigWilliam
* Author URI: http://bigwilliam.com/
* License: MIT
* License URI: http://opensource.org/licenses/MIT
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
$this_dir = plugin_dir_path( __FILE__ );
/*========================================================================*
Comment these out if you don't need them
*========================================================================*/
/**
*
* UTILITIES:
*
* bigwilliam_debug()
* bw_default_media_links()
* chrome_fix()
* protect agains url attacks
*
*/
require_once( $this_dir . 'inc/utilities.php' );
/**
*
* LOGIN: -- requires custom config per site
*
* bw_login_logo()
* bw_login_logo_url()
* bw_login_logo_url_title()
*
*/
require_once( $this_dir . 'inc/login.php' );
/**
*
* MENU: -- requires custom config per site
*
* bw_remove_menu_items()
* bw_custom_menu_names()
* pages_above_posts()
* bw_change_admin_bar()
* bw_replace_footer_text()
*
*/
require_once( $this_dir . 'inc/menu.php' );
/**
*
* SCRIPTS: -- turn this on if you want to add custom js or css to the site, outside the theme files
*
* bw_added_scripts()
*
*/
require_once( $this_dir . 'inc/scripts.php' );