-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabs-plugin-blocks.php
48 lines (43 loc) · 1.12 KB
/
labs-plugin-blocks.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
48
<?php
/**
* Plugin Name: LABS: plugin-blocks
* Plugin URI: bu.edu
* Description: Sandbox for blocks living inside a plugin. Do not use.
* Requires at least: 5.8
* Requires PHP: 7.4
* Version: 0.0.0
* Author: Boston University: Interactive Design
* Author URI: http://www.bu.edu/interactive-design/
* Text Domain: labs-plugin-blocks
*
* @package labs-plugin-blocks
*/
namespace BU\plugin_slug;
/**
* Constants.
*/
define( 'PLUGIN_SLUG_DIR', plugin_dir_path( __FILE__ ) );
define( 'PLUGIN_SLUG_URL', plugin_dir_url( __FILE__ ) );
/**
* Current plugin info.
*
* @link https://developer.wordpress.org/reference/functions/get_file_data/
*/
$plugin_data = get_file_data(
__FILE__,
array(
'Version' => 'Version',
'Text Domain' => 'Text Domain',
),
false
);
define( 'PLUGIN_SLUG_VERSION', $plugin_data['Version'] );
define( 'PLUGIN_SLUG', $plugin_data['Text Domain'] );
/**
* Include Plugin Assets
*/
require_once PLUGIN_SLUG_DIR . 'includes/class-pluginenqueues.php';
/**
* Blocks & Assets
*/
require_once PLUGIN_SLUG_DIR . 'includes/blocks/functions.php';