can_use_premium_code() : false; } /** * @param string $plan Plan name as set in Freemius, e.g. "business". * @param bool $exact Only this plan, not higher ones. */ public static function is_plan( $plan, $exact = false ) { if ( self::dev_mode() ) { return true; } $fs = self::sdk(); return $fs ? (bool) $fs->is_plan( $plan, $exact ) : false; } public static function upgrade_url() { $fs = self::sdk(); return $fs ? $fs->get_upgrade_url() : ''; } /** Show upgrade prompts only to free users and only when an upgrade path exists. */ public static function show_upsell() { $fs = self::sdk(); return $fs && $fs->is_not_paying() && ! $fs->is_trial() && apply_filters( 'tableengine_show_upsell', true ); } }