PluginProbe
Datafeedr API / 1.1.2
Datafeedr API v1.1.2
1.4.2 1.0.125 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.3 1.0.30 1.0.31 1.0.32 1.0.33 All 181 releases
datafeedr-api / datafeedr-api-v2.php

datafeedr-api-v2.php in Datafeedr API 1.1.2, at datafeedr-api-v2.php

41 lines 734 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 );