-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenkaarten-frontend-plugin.php
51 lines (44 loc) · 1.85 KB
/
openkaarten-frontend-plugin.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 0.1.0
* @package Openkaarten_Frontend_Plugin
*
* @wordpress-plugin
* Plugin Name: OpenKaarten Frontend Plugin
* Plugin URI: https://openwebconcept.nl/
* Description: Adds OpenKaarten Blocks to the Gutenberg editor.
* Version: 0.1.0
* Author: Acato
* Author URI: https://www.acato.nl
* Text Domain: openkaarten-frontend-plugin
* 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( '\Openkaarten_Frontend_Plugin\Includes\Autoloader', 'autoload' ) );
// Make sure global functions are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'functions' . DIRECTORY_SEPARATOR . '*.php' ) as $openkaarten_frontend_plugin_functions ) {
require_once $openkaarten_frontend_plugin_functions;
}
// Make sure global filters are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'filters' . DIRECTORY_SEPARATOR . '*.php' ) as $openkaarten_frontend_plugin_filter ) {
require_once $openkaarten_frontend_plugin_filter;
}
if ( ! defined( 'OPENKAARTEN_FRONTEND_VERSION' ) ) {
define( 'OPENKAARTEN_FRONTEND_VERSION', '0.1.0' );
}
if ( ! defined( 'OPENKAARTEN_FRONTEND_PLUGIN_NAME' ) ) {
define( 'OPENKAARTEN_FRONTEND_PLUGIN_NAME', 'OpenKaarten Frontend Plugin' );
}
/**
* Begins execution of the plugin.
*/
new \Openkaarten_Frontend_Plugin\Includes\Plugin();