-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-usage.php
More file actions
34 lines (30 loc) · 805 Bytes
/
template-usage.php
File metadata and controls
34 lines (30 loc) · 805 Bytes
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
<?php
/**
* Plugin Name: Template Usage
* Description: Display info on what page templates are currently being used within a WordPress multisite.
* Version: 1.0.0-beta.1
* Author: Joseph Fusco
* Author URI: https://github.com/josephfusco/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: template-usage
* Domain Path: /languages
* Network: true
*/
namespace Template_Usage;
// If this file is called directly, abort.
defined( 'WPINC' ) || die();
/**
* Autoload the plugin's classes.
*/
require_once __DIR__ . '/inc/autoload.php';
/**
* Begins execution of the plugin.
*/
add_action(
'plugins_loaded',
function () {
$plugin = new Plugin();
$plugin->run();
}
);