forked from 10up/plugin-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
34 lines (29 loc) · 967 Bytes
/
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
<?php
/**
* Plugin Name: TenUpScaffold
* Plugin URI:
* Description:
* Version: 0.1.0
* Author: 10up
* Author URI: https://10up.com
* Text Domain: tenup-scaffold
* Domain Path: /languages
*
* @package PluginScaffold
*/
// Useful global constants.
define( 'TENUP_SCAFFOLD_VERSION', '0.1.0' );
define( 'TENUP_SCAFFOLD_URL', plugin_dir_url( __FILE__ ) );
define( 'TENUP_SCAFFOLD_PATH', dirname( __FILE__ ) . '/' );
define( 'TENUP_SCAFFOLD_INC', TENUP_SCAFFOLD_PATH . 'includes/' );
// Include files.
require_once TENUP_SCAFFOLD_INC . 'functions/core.php';
// Activation/Deactivation.
register_activation_hook( __FILE__, '\TenUpScaffold\Core\activate' );
register_deactivation_hook( __FILE__, '\TenUpScaffold\Core\deactivate' );
// Bootstrap.
TenUpScaffold\Core\setup();
// Require Composer autoloader if it exists.
if ( file_exists( TENUP_SCAFFOLD_PATH . '/vendor/autoload.php' ) ) {
require_once TENUP_SCAFFOLD_PATH . 'vendor/autoload.php';
}