Freemius_Abstract
– Each instance of Freemius class represents a single plugin install by a single user (the installer of the plugin).
Description Description
-
Each website can only have one install of the same plugin.
-
Install entity is only created after a user connects his account with Freemius.
Class Freemius_Abstract
Source Source
File: includes/pum-sdk/freemius/includes/class-freemius-abstract.php
Expand full source code Collapse full source code View on Trac
Methods Methods
- allow_tracking — Opt-in back into usage tracking.
- can_use_premium_code — Check if user in a trial or have feature enabled license.
- can_use_premium_code__premium_only — Check if user in a trial or have feature enabled license.
- get_upgrade_url — Get upgrade URL.
- has_free_plan — Check if plugin has any free plan, or is it premium only.
- has_paid_plan — Check if plugin has any paid plans.
- has_premium_version — Check if module has a premium code version.
- has_purchased_before — Check if current user purchased any other plugins before.
- has_release_on_freemius — Check if module has any release on Freemius, or all plugin's code is on WordPress.org (Serviceware).
- is__premium_only — Returns true when running premium plugin code.
- is_activation_mode — Check if the user currently in activation mode.
- is_agency — Check if current user classified as an agency.
- is_allowed_to_install — Check if plugin is allowed to install executable files.
- is_anonymous — Check if the user skipped connecting the account with Freemius.
- is_business — Check if current user classified as a business.
- is_developer — Check if current user classified as a developer.
- is_free_plan — Check if the user is on the free plan of the product.
- is_freemium — Checks if it's a freemium plugin.
- is_live — Check if running test vs. live plugin.
- is_not_paying — Check if user in trial or in free plan (not paying).
- is_only_premium — Check if plugin is premium only (no free plans).
- is_org_repo_compliant — Check if plugin must be WordPress.org compliant.
- is_paying — Check if the user has an activated and valid paid license on current plugin's install.
- is_paying__fs__ — Check if the user has an activated and valid paid license on current plugin's install. — deprecated
- is_paying__premium_only — Check if the user has an activated and valid paid license on current plugin's install.
- is_paying_or_trial — Check if the user is paying or in trial.
- is_paying_or_trial__premium_only — Check if the user is paying or in trial.
- is_payments_sandbox — Check if running payments in sandbox mode.
- is_plan
- is_plan__premium_only — All code wrapped in this statement will be only included in the premium code.
- is_plan_or_trial — Check if plan matches active license' plan or active trial license' plan.
- is_plan_or_trial__premium_only — Check if plan matches active license' plan or active trial license' plan.
- is_plugin — Checks if the plugin's type is "plugin". The other type is "theme".
- is_plugin_new_install — Check if Freemius was part of the plugin when the user installed it first.
- is_plugin_update — Check if Freemius was first added in a plugin update.
- is_premium — Check if running premium plugin code.
- is_registered — Check if user has connected his account (opted-in).
- is_single_plan — Check if module has only one plan.
- is_theme — Checks if the module type is "theme". The other type is "plugin".
- is_tracking_allowed — Returns TRUE if the user opted-in and didn't disconnect (opt-out).
- is_tracking_prohibited — Returns TRUE if the user never opted-in or manually opted-out.
- is_trial — Check if the user in a trial.
- is_trial_plan — Check if plan based on trial. If not in trial mode, should return false.
- is_trial_utilized — Check if trial already utilized.
- stop_tracking — Opt-out from usage tracking.