set_basename( false, __FILE__ ); } else { if ( ! function_exists( 'floatconnect_fs' ) ) { /** * Create a helper function for easy SDK access. * * @return object */ function floatconnect_fs() { global $floatconnect_fs; if ( ! isset( $floatconnect_fs ) ) { /** * Include Freemius SDK. */ require_once __DIR__ . '/vendor/freemius/start.php'; $floatconnect_fs = fs_dynamic_init( array( 'id' => '38182', 'slug' => 'floatconnect', 'premium_slug' => 'floatconnect-premium', 'type' => 'plugin', 'public_key' => 'pk_d2ba9ba3c5feb85a0e0ce21514752', 'is_premium' => false, 'premium_suffix' => 'Premium', 'has_addons' => false, 'has_paid_plans' => true, 'is_org_compliant' => true, 'menu' => array( 'slug' => 'floatconnect', 'support' => false, ), 'is_live' => true, ) ); } return $floatconnect_fs; } /** * Initialize Freemius. */ floatconnect_fs(); /** * Clean up plugin data after uninstall. * * @return void */ function floatconnect_fs_uninstall_cleanup(): void { delete_option( 'floatconnect_settings' ); } floatconnect_fs()->add_action( 'after_uninstall', 'floatconnect_fs_uninstall_cleanup' ); /** * Signal that SDK was initiated. */ do_action( 'floatconnect_fs_loaded' ); } /** * Plugin version. */ define( 'FLOATCONNECT_VERSION', '1.0.0' ); /** * Plugin path. */ define( 'FLOATCONNECT_PATH', plugin_dir_path( __FILE__ ) ); /** * Plugin URL. */ define( 'FLOATCONNECT_URL', plugin_dir_url( __FILE__ ) ); /** * Load the autoloader. */ require_once FLOATCONNECT_PATH . 'includes/class-floatconnect-autoloader.php'; FloriPlugins\Floatconnect\FLOATCONNECT_Autoloader::register(); /** * Boot the plugin. */ add_action( 'plugins_loaded', static function (): void { $application = new FloriPlugins\Floatconnect\FLOATCONNECT_Application(); $application->boot(); } ); }