Repository navigation
Expand file tree
/
Copy pathprc-wp-admin-dataview.php
More file actions
63 lines (56 loc) · 1.7 KB
/
Copy pathprc-wp-admin-dataview.php
File metadata and controls
63 lines (56 loc) · 1.7 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
<?php
/**
* PRC Wp_Admin_Dataview
*
* @package PRC_Wp_Admin_Dataview
* @author Seth Rubenstein
* @copyright 2024 Pew Research Center
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: PRC WP Admin Dataview
* Plugin URI: https://github.com/pewresearch/prc-platform
* Description: DataViews admin list shells for core and shared post types, with a field-provider contract for domain plugins.
* Version: 1.0.0
* Requires at least: 6.8
* Requires PHP: 8.2
* Author: Seth Rubenstein
* Author URI: https://pewresearch.org
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: prc-wp-admin-dataview
* Requires Plugins: prc-shared
*/
namespace PRC\Platform\Wp_Admin_Dataview;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'PRC_WP_ADMIN_DATAVIEW_FILE', __FILE__ );
define( 'PRC_WP_ADMIN_DATAVIEW_DIR', __DIR__ );
define( 'PRC_WP_ADMIN_DATAVIEW_VERSION', '1.0.0' );
/**
* Helper utilities
*/
require plugin_dir_path( __FILE__ ) . 'includes/utils.php';
/**
* The core bootstrap class that is used to define the hooks that initialize the various components.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-bootstrap.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_prc_wp_admin_dataview() {
$plugin = new Bootstrap();
$plugin->run();
}
run_prc_wp_admin_dataview();