-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plumber.php
28 lines (24 loc) · 1.07 KB
/
Plumber.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
<?php
/**
* Plugin Name: WP Plumber
* Plugin URI:
* Description: Wordpress clogging up your workflow? WP Plumber can help! After all, the internet is just a series of tubes.
* Version: 0.1
* Author: Ben Baker-Smith
* Author URI: http://bitsynthesis.com
* License: GPL2
*/
$plumber_plugin_directory = dirname(__FILE__).'/lib/wp-plumber/';
require_once($plumber_plugin_directory.'/Plumber.class.php');
require_once($plumber_plugin_directory.'/PlumberStatic.class.php');
require_once($plumber_plugin_directory.'/PlumberFactory.class.php');
require_once($plumber_plugin_directory.'/PlumberRoute.class.php');
require_once($plumber_plugin_directory.'/PlumberRouteContainer.class.php');
require_once($plumber_plugin_directory.'/PlumberRouteFactory.class.php');
require_once($plumber_plugin_directory.'/PlumberPod.class.php');
require_once($plumber_plugin_directory.'/PlumberPodFactory.class.php');
// allow tests to run without loading wordpress
if(defined('WP_PLUMBER_TEST') == false || WP_PLUMBER_TEST == false) {
add_action('wp_router_generate_routes', 'Plumber::create_routes', 20);
}
?>