generated from 10up/plugin-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 2
/
coop-library-framework.php
41 lines (35 loc) · 1.57 KB
/
coop-library-framework.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
<?php
/**
* Plugin Name: Co-op Library Framework
* Plugin URI: https://github.com/platform-coop-toolkit/coop-library-framework/
* Description: Custom post type and metadata utilities for the Platform Co-op Resource Library.
* Version: 1.0.0-rc.1
* Author: Platform Cooperative Development Kit
* Author URI: https://github.com/platform-coop-toolkit/
* Text Domain: coop-library-framework
* Domain Path: /languages
*
* @package CoopLibraryFramework
*/
// Useful global constants.
define( 'COOP_LIBRARY_FRAMEWORK_VERSION', '1.0.0-rc.1' );
define( 'COOP_LIBRARY_FRAMEWORK_URL', plugin_dir_url( __FILE__ ) );
define( 'COOP_LIBRARY_FRAMEWORK_PATH', plugin_dir_path( __FILE__ ) );
define( 'COOP_LIBRARY_FRAMEWORK_INC', COOP_LIBRARY_FRAMEWORK_PATH . 'includes/' );
// Include files.
require_once COOP_LIBRARY_FRAMEWORK_INC . 'functions/core.php';
require_once COOP_LIBRARY_FRAMEWORK_INC . 'functions/internationalization.php';
require_once COOP_LIBRARY_FRAMEWORK_INC . 'functions/metadata.php';
// Activation/Deactivation.
register_activation_hook( __FILE__, '\CoopLibraryFramework\Core\activate' );
register_deactivation_hook( __FILE__, '\CoopLibraryFramework\Core\deactivate' );
// Bootstrap.
CoopLibraryFramework\Core\setup();
CoopLibraryFramework\Internationalization\setup();
CoopLibraryFramework\Metadata\setup();
// Require Composer autoloader if it exists.
if ( file_exists( COOP_LIBRARY_FRAMEWORK_PATH . '/vendor/autoload.php' ) ) {
require_once COOP_LIBRARY_FRAMEWORK_PATH . 'vendor/autoload.php';
}
// Run dependency installer.
WP_Dependency_Installer::instance()->run( __DIR__ );