# datafeedr-api/1.0.125/datafeedr-api-v2.php

Datafeedr API, version 1.0.125. 41 lines.

- Page: https://pluginprobe.com/plugins/datafeedr-api/1.0.125/code/datafeedr-api-v2.php
- Raw: https://pluginprobe.com/plugins/datafeedr-api/1.0.125/raw/datafeedr-api-v2.php
- Modified: 2018-02-08T16:35:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/datafeedr-api/1.0.125/code/datafeedr-api-v2.php#L10-L20`.

```php
<?php namespace Datafeedr\Api;

/**
 * Exit if accessed directly
 *
 * @since 2.0.0
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Require helper functions.
 *
 * @since 2.0.0
 */
require_once dirname( __FILE__ ) . '/src/functions.php';

/**
 * Autoload Wuwei Framework Classes.
 *
 * @since 2.0.0
 */
require_once dirname( __FILE__ ) . '/Wuwei/Autoloader.php';

/**
 * Autoload Plugin Classes.
 *
 * @since 2.0.0
 */
require_once dirname( __FILE__ ) . '/src/Autoloader.php';

/**
 * Load Plugin
 *
 * Sets priority to 20. Other dependencies should load after (ie. use a higher priority number).
 *
 * @since 2.0.0
 */
$datafeedr_api = new Plugin( __FILE__ );
add_action( 'plugins_loaded', array( $datafeedr_api, 'load' ), 20 );
```
