| 1 |
<?php namespace Datafeedr\Api; |
| 2 |
|
| 3 |
/** |
| 4 |
* Exit if accessed directly |
| 5 |
* |
| 6 |
* @since 2.0.0 |
| 7 |
*/ |
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* Require helper functions. |
| 14 |
* |
| 15 |
* @since 2.0.0 |
| 16 |
*/ |
| 17 |
require_once dirname( __FILE__ ) . '/src/functions.php'; |
| 18 |
|
| 19 |
/** |
| 20 |
* Autoload Wuwei Framework Classes. |
| 21 |
* |
| 22 |
* @since 2.0.0 |
| 23 |
*/ |
| 24 |
require_once dirname( __FILE__ ) . '/Wuwei/Autoloader.php'; |
| 25 |
|
| 26 |
/** |
| 27 |
* Autoload Plugin Classes. |
| 28 |
* |
| 29 |
* @since 2.0.0 |
| 30 |
*/ |
| 31 |
require_once dirname( __FILE__ ) . '/src/Autoloader.php'; |
| 32 |
|
| 33 |
/** |
| 34 |
* Load Plugin |
| 35 |
* |
| 36 |
* Sets priority to 20. Other dependencies should load after (ie. use a higher priority number). |
| 37 |
* |
| 38 |
* @since 2.0.0 |
| 39 |
*/ |
| 40 |
$datafeedr_api = new Plugin( __FILE__ ); |
| 41 |
add_action( 'plugins_loaded', array( $datafeedr_api, 'load' ), 20 ); |