-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfantrax_fantasyadp.php
31 lines (25 loc) · 1006 Bytes
/
fantrax_fantasyadp.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
<?php
/*
Plugin Name: Fantrax Fantasy ADP
Plugin URI: https://fantrax.com
Description: Allows Fantrax to embed tables with sports data from their api
Version: 1.2
Author: Tyler Steinhaus
Author URI: https://tylersteinhaus.com
Author email: [email protected]
Text Domain: fantrax_fantasyadp
*/
namespace Fantrax;
// Prohibit direct script loading.
defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
// Define certain plugin variables as constants.
define( 'FANTRAX_ABSPATH', plugin_dir_path( __FILE__ ) );
define( 'FANTRAX_RELPATH', plugin_dir_url( __FILE__ ) );
define( 'FANTRAX__FILE__', __FILE__ );
define( 'FANTRAX_BASENAME', plugin_basename( FANTRAX__FILE__ ) );
require FANTRAX_ABSPATH . 'classes/Setup.php';
require FANTRAX_ABSPATH . 'classes/Printing.php';
require FANTRAX_ABSPATH . 'classes/CSV.php';
add_action( 'init', array( '\Fantrax\Setup', 'init' ) );
add_action( 'init', array( '\Fantrax\Printing', 'init' ) );
add_action( 'init', array( '\Fantrax\CSV', 'init' ) );