-
Notifications
You must be signed in to change notification settings - Fork 1
/
wp-core-test-team.php
executable file
·47 lines (41 loc) · 1.03 KB
/
wp-core-test-team.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
<?php
/**
* Plugin Name: WordPress Core Test Team Suite
* Description: A collection of tools for use by the WordPress Core Test Team.
* Author: WordPress Test Team
* Author URI: https://make.wordpress.org/test/
* License: GPLv2 or later
* Version: 0.0.2
*
* @package WPCoreTestTeamSuite
*/
namespace WPCoreTestTeamSuite;
defined( 'ABSPATH' ) || exit;
define( 'WP_TEST_TEAM_DIR', plugin_dir_path( __FILE__ ) );
add_action(
'admin_menu',
static function() {
add_submenu_page(
'tools.php',
'Test Team Suite',
'Test Team Suite',
'manage_options',
'wp-core-test-team-suite',
'WPCoreTestTeamSuite\init'
);
}
);
if ( ! function_exists( 'WPCoreTestTeamSuite\init' ) ) {
/**
* Initialize the settings screen.
*
* @since 0.0.1
*/
function init() {
if ( ! class_exists( 'WPCoreTestTeamSuite\Admin\Settings' ) ) {
require_once wp_normalize_path( WP_TEST_TEAM_DIR . 'admin/class-settings.php' );
}
$settings = new \WPCoreTestTeamSuite\Admin\Settings();
$settings->display_current_tab();
}
}