-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnlds-community-blocks.php
51 lines (44 loc) · 1.71 KB
/
nlds-community-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
49
50
51
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin admin area. This file also includes
* all the dependencies used by the plugin, registers the activation and deactivation functions, and starts the plugin.
*
* @since 1.0.0
* @package Nlds_Community_Blocks
*
* @wordpress-plugin
* Plugin Name: NL Design System Community Blocks
* Plugin URI: https://nldesignsystem.nl/
* Description: Adds NL Design System Community Blocks to the Gutenberg editor.
* Version: 1.0.0
* Author: Acato
* Author URI: https://www.acato.nl
* Text Domain: nlds-community-blocks
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'class-autoloader.php';
spl_autoload_register( array( '\Nlds_Community_Blocks\Includes\Autoloader', 'autoload' ) );
// Make sure global functions are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'functions' . DIRECTORY_SEPARATOR . '*.php' ) as $ncb_plugin_functions ) {
require_once $ncb_plugin_functions;
}
// Make sure global filters are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'filters' . DIRECTORY_SEPARATOR . '*.php' ) as $ncb_plugin_filter ) {
require_once $ncb_plugin_filter;
}
if ( ! defined( 'NCB_VERSION' ) ) {
define( 'NCB_VERSION', '1.0.1' );
}
if ( ! defined( 'NCB_PLUGIN_PATH' ) ) {
define( 'NCB_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
}
/**
* Begins execution of the plugin.
*/
new \Nlds_Community_Blocks\Includes\Plugin();