Repository navigation
Expand file tree
/
Copy pathprc-chart-builder.php
More file actions
58 lines (54 loc) · 2.22 KB
/
Copy pathprc-chart-builder.php
File metadata and controls
58 lines (54 loc) · 2.22 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
<?php
/**
* PRC Chart Builder
*
* @wordpress-plugin
* Plugin Name: PRC Chart Builder
* Plugin URI: https://github.com/pewresearch/prc-chart-builder
* Description: Chart Builder is a chart building tool for the PRC Platform. It allows you to create rich, highly interactive charts and data visualizations all from the block editor. Support for synced charts via the Synced Chart block is also possible, allowing you to place one chart in many places and have them all update when the original is updated.
* Version: 3.16.0
* Author: Benjamin Wormald
* Author URI: https://pewresearch.org
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: prc-chart-builder
* Requires at least: 6.7
* Requires PHP: 8.2
* Requires Plugins: prc-shared, prc-block-tables
* @package prc-chart-builder
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// When running inside the PRC Platform monorepo the root autoloader already
// provides every dependency; skip per-plugin Jetpack Autoloader initialization.
if ( ! defined( 'PRC_PLATFORM' ) ) {
$prc_chart_builder_autoloader = __DIR__ . '/vendor/autoload_packages.php';
if ( file_exists( $prc_chart_builder_autoloader ) ) {
require_once $prc_chart_builder_autoloader;
}
unset( $prc_chart_builder_autoloader );
}
define( 'PRC_CHART_BUILDER_VERSION', '3.16.0' );
define( 'PRC_CHART_BUILDER_DIR', __DIR__ );
define( 'PRC_CHART_BUILDER_DIR_MANIFEST_FILE', __DIR__ . '/build/block-manifest.php' );
define( 'PRC_CHART_BUILDER_NAMESPACE', 'prc-chart-builder' );
/**
* The core plugin class that is used to define the hooks that initialize the various plugin components.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-plugin-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 and is therefore more performant.
*
* @since 3.0.0
*/
function run_prc_platform_chart_builder() {
$plugin = new \PRC\Platform\Chart_Builder\Plugin_Bootstrap();
$plugin->run();
}
run_prc_platform_chart_builder();