Exemplo n.º 1
0
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_League_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Club_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_GameDay_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Match_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Season_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Team_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Backend/KKL_Location_Admin_Page.php';
    require_once dirname(__FILE__) . '/KKL/Tasks/NewGameDay.php';
    $options = array();
    new KKL_League_Admin_Page(__FILE__, $options);
    new KKL_Club_Admin_Page(__FILE__, $options);
    new KKL_GameDay_Admin_Page(__FILE__, $options);
    new KKL_Match_Admin_Page(__FILE__, $options);
    new KKL_Season_Admin_Page(__FILE__, $options);
    new KKL_Team_Admin_Page(__FILE__, $options);
    new KKL_Location_Admin_Page(__FILE__, $options);
}
scb_init('scb_framework_init');
$kkl = new KKL();
$kkl->init();
add_action('kkl_update_game_days', array('KKL_Tasks_NewGameDay', 'execute'));
if (!wp_next_scheduled('kkl_update_game_days')) {
    wp_schedule_event(time(), 'hourly', 'kkl_update_game_days');
}
add_action('plugins_loaded', 'kkl_load_textdomain');
function kkl_load_textdomain()
{
    load_plugin_textdomain('kkl-ligatool', false, dirname(plugin_basename(__FILE__)) . '/lang/');
}
add_filter('set-screen-option', array('KKLBackend', 'set_screen_options'), 10, 3);