set_basename(false, __FILE__); } else { // Some Setup define('STREAMCAST_PLUGIN_DIR', plugin_dir_url(__FILE__)); define('STREAMCAST_PLUGIN_PATH', plugin_dir_path(__FILE__)); define('STREAMCAST_PLUGIN_VERSION', '2.4.5'); define('STREAMCAST_PLUGIN_FILE', __FILE__); define('STREAMCAST_HAS_PRO', 'streamcast-premium/streamcast.php' === plugin_basename(__FILE__)); if (!function_exists('str_fs')) { function str_fs() { global $str_fs; if (!isset($str_fs)) { // Include Freemius SDK. require_once dirname(__FILE__) . '/vendor/freemius/start.php'; $str_fs = fs_dynamic_init(array( 'id' => '6433', 'slug' => 'streamcast', 'type' => 'plugin', 'public_key' => 'pk_a19d159db561c020210345da466f1', 'is_premium' => false, 'menu' => array( 'slug' => 'edit.php?post_type=streamcast', 'first-path' => 'edit.php?post_type=streamcast&page=streamcast#/dashboard', 'support' => false, 'affiliation' => false, ), 'is_live' => true, )); } return $str_fs; } // Init Freemius. str_fs(); // Signal that SDK was initiated. do_action('str_fs_loaded'); } // Load main plugin class require_once plugin_dir_path(__FILE__) . 'inc/class-streamcast-main.php'; // Initialize new \StreamCast\STREAMCAST_Main(); }