'35777', 'slug' => 'addon-boss', 'premium_slug' => 'addon-boss-pro', 'type' => 'plugin', 'public_key' => 'pk_a2c213b7e412c1053a5696e9a5406', 'bundle_id' => '35790', 'bundle_public_key' => 'pk_a5e25ca8295fd33601ba3fed7fb9e', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'menu' => array( 'slug' => 'addon-boss', 'support' => false, 'contact' => false, 'parent' => array( 'slug' => 'bossmage', ), ), 'is_live' => true, 'is_org_compliant' => true, ) ); // No page to land on without WooCommerce: the plugin stops before it adds // its menu, so the SDK's post-activation trip to admin.php?page=addon-boss // ended on WordPress's "Sorry, you are not allowed to access this page" for // a shop that installs AddOnBoss before WooCommerce (and on directory checks // that activate every plugin on a bare WordPress). Without WooCommerce the // activation stays on Plugins, where the notice says what to do next. $addon_boss_fs->add_filter( 'redirect_on_activation', function ( $go ) { return $go && class_exists( 'WooCommerce' ); } ); // The mark on Freemius's own screens (opt-in, Account, Pricing). Without it // the SDK draws its generic grey plug, so the first screen a merchant sees // after activating carries no sign of what they just installed. The premium // slug is not on wordpress.org, so the SDK can never fetch an icon itself. // BundleBoss has always done this; AddOnBoss simply never did. if ( function_exists( 'addon_boss_product_icon_url' ) || file_exists( ADDON_BOSS_PATH . 'img/plugin-icon.png' ) ) { $addon_boss_fs->add_filter( 'plugin_icon', function () { return ADDON_BOSS_PATH . 'img/plugin-icon.png'; } ); } // Freemius owns the uninstall event; our cleanup runs through it. require_once ADDON_BOSS_PATH . 'includes/uninstall.php'; $addon_boss_fs->add_action( 'after_uninstall', 'addon_boss_uninstall_cleanup' ); do_action( 'addon_boss_fs_loaded' ); return $addon_boss_fs; }