-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwoo-portal-plugin.php
52 lines (44 loc) · 1.7 KB
/
woo-portal-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 1.0.0
* @package WOO_Portal
*
* @wordpress-plugin
* Plugin Name: WOO Portal Plugin
* Plugin URI: https://openwebconcept.nl/
* Description: Adds WOO Portal Blocks to the Gutenberg editor.
* Version: 1.0.0
* Author: Acato
* Author URI: https://www.acato.nl
* Text Domain: woo-portal-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( '\WOO_Portal\Includes\Autoloader', 'autoload' ) );
// Make sure global functions are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'functions' . DIRECTORY_SEPARATOR . '*.php' ) as $woo_portal_plugin_functions ) {
require_once $woo_portal_plugin_functions;
}
// Make sure global filters are loaded.
foreach ( glob( plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'filters' . DIRECTORY_SEPARATOR . '*.php' ) as $woo_portal_plugin_filter ) {
require_once $woo_portal_plugin_filter;
}
if ( ! defined( 'WOO_PORTAL_VERSION' ) ) {
define( 'WOO_PORTAL_VERSION', '1.0.0' );
}
if ( ! defined( 'WOO_PORTAL_PLUGIN_NAME' ) ) {
define( 'WOO_PORTAL_PLUGIN_NAME', 'WOO Portal Plugin' );
}
/**
* Begins execution of the plugin.
*/
new \WOO_Portal\Includes\Plugin();