-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacts.php
41 lines (35 loc) · 3.33 KB
/
facts.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
/*
* @wordpress-plugin
* Plugin Name: _ANDYP - Shortcode [facts]
* Plugin URI: http://londonparkour.com
* Description: <strong>Shortcodes</strong> Small defined facts to retrieve about the system.
* Version: 1.0.0
* Author: Andy Pearson
* Author URI: https://londonparkour.com
* Domain Path: /languages
*/
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ CONFIGURATION │
// └─────────────────────────────────────────────────────────────────────────┘
$config = [];
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Register CONSTANTS │
// └─────────────────────────────────────────────────────────────────────────┘
define( 'ANDYP_FACTS_PATH', __DIR__ );
define( 'ANDYP_FACTS_URL', plugins_url( '/', __FILE__ ) );
define( 'ANDYP_FACTS_FILE', __FILE__ );
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Register with ANDYP Plugins │
// └─────────────────────────────────────────────────────────────────────────┘
require __DIR__.'/src/acf/andyp_plugin_register.php';
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Use composer autoloader │
// └─────────────────────────────────────────────────────────────────────────┘
require __DIR__.'/vendor/autoload.php';
// ┌─────────────────────────────────────────────────────────────────────────┐
// │ Initialise │
// └─────────────────────────────────────────────────────────────────────────┘
$cpt = new andyp\facts\initialise;
$cpt->set_config($config);
$cpt->register();