diff --git a/modules/sportspress-player-assignments.php b/modules/sportspress-player-assignments.php new file mode 100644 index 00000000..beb0948d --- /dev/null +++ b/modules/sportspress-player-assignments.php @@ -0,0 +1,44 @@ +define_constants(); + // Actions + // Filters + } + /** + * Define constants. + */ + private function define_constants() { + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.0' ); + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) ); + if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) ) + define( 'SP_PLAYER_ASSIGNMENTS_DIR', plugin_dir_path( __FILE__ ) ); + } +} +endif; +if ( get_option( 'sportspress_load_player_assignments_module', 'yes' ) == 'yes' ) { //Is it needed? + new SportsPress_Player_Assignments(); +} \ No newline at end of file