-
Notifications
You must be signed in to change notification settings - Fork 23
/
rewrite-rules-inspector.php
44 lines (39 loc) · 1.45 KB
/
rewrite-rules-inspector.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
<?php
/**
* Rewrite Rules Inspector
*
* @package automattic\rewrite-rules-inspector
* @author Automattic, Daniel Bachhuber
* @copyright 2012 Automattic
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Rewrite Rules Inspector
* Plugin URI: https://wordpress.org/plugins/rewrite-rules-inspector/
* Description: Simple WordPress admin tool for inspecting your rewrite rules.
* Version: 1.4.0
* Author: Automattic, Daniel Bachhuber
* Author URI: https://automattic.com/
* Text Domain: rewrite-rules-inspector
* License: GPL-2.0-or-later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* GitHub Plugin URI: https://github.com/Automattic/Rewrite-Rules-Inspector
* Requires PHP: 7.4
* Requires WP: 5.9.0
*/
define( 'REWRITE_RULES_INSPECTOR_VERSION', '1.4.0' ); // Unused for now.
define( 'REWRITE_RULES_INSPECTOR_FILE_PATH', plugin_basename( __FILE__ ) );
require __DIR__ . '/src/class-rewrite-rules-inspector.php';
// Load the WP_List_Table class if it doesn't yet exist.
if ( ! class_exists( 'WP_List_Table' ) ) {
require_once ABSPATH . '/wp-admin/includes/class-wp-list-table.php';
}
require __DIR__ . '/src/class-rewrite-rules-inspector-list-table.php';
add_action(
'plugins_loaded',
function() {
global $rewrite_rules_inspector;
$rewrite_rules_inspector = new Rewrite_Rules_Inspector();
$rewrite_rules_inspector->run();
}
);