set_basename( false, __FILE__ ); } else { /** * The Freemius instance. Freemius handles the opt-in, Pro licences and Pro updates; nothing is sent before the * admin clicks Allow on its opt-in screen. * * @return Freemius */ function waysill_fs() { global $waysill_fs; if ( !isset( $waysill_fs ) ) { require_once __DIR__ . '/vendor/freemius/start.php'; $waysill_fs = fs_dynamic_init( array( 'id' => '44136', 'slug' => 'waysill', 'premium_slug' => 'waysill-pro', 'type' => 'plugin', 'public_key' => 'pk_8a23b0200714d585ce5d703daaeca', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'is_org_compliant' => true, 'menu' => array( 'slug' => 'waysill', 'parent' => array( 'slug' => 'options-general.php', ), 'contact' => false, 'support' => false, 'pricing' => false, ), 'is_live' => true, ) ); } return $waysill_fs; } // Freemius must start while the plugin file loads, before plugins_loaded. waysill_fs(); // Deleting the plugin removes its data. Freemius owns the uninstall hook (a plugin with uninstall.php is refused), // so the cleanup runs on its after_uninstall action; see includes/cleanup.php. waysill_fs()->add_action( 'after_uninstall', 'waysill_uninstall_cleanup' ); do_action( 'waysill_fs_loaded' ); define( 'WAYSILL_VERSION', '1.1.1' ); define( 'WAYSILL_FILE', __FILE__ ); define( 'WAYSILL_DIR', plugin_dir_path( __FILE__ ) ); define( 'WAYSILL_URL', plugin_dir_url( __FILE__ ) ); // Shown in the one line about Pro on the settings page; the build writes them from the shared product data. define( 'WAYSILL_PRO_PRICE_USD', '79' ); define( 'WAYSILL_PRICING_URL', 'https://saffo.dev/pricing/' ); require_once WAYSILL_DIR . 'includes/settings.php'; require_once WAYSILL_DIR . 'includes/results.php'; require_once WAYSILL_DIR . 'includes/rest.php'; require_once WAYSILL_DIR . 'includes/editor.php'; require_once WAYSILL_DIR . 'includes/preview.php'; require_once WAYSILL_DIR . 'includes/cleanup.php'; }