Skip to content

New License Lifecycle Hooks, Checkout Customization, and InstaWP Support

Latest

Choose a tag to compare

@swashata swashata released this 11 Nov 07:52
3cbe98b

We are releasing version 2.13.0 of the Freemius WordPress SDK, introducing several enhancements and new developer-focused features.

License Lifecycle Hooks

Two new action hooks have been added to help developers manage license lifecycle events:

  • after_license_activation: Triggered after a license is successfully activated.
  • after_license_deactivation: Triggered after a license is successfully deactivated.

These can be used along with the existing after_license_change hook to perform custom actions when a license's status changes. This is particularly helpful if you maintain your own license management system and need to keep it in sync with Freemius.

You can read more about all supported hooks and filters in our documentation.

Payments Now Show the Gross Amount

Previously, we showed the Net amount in the payments list within the Accounts page, excluding taxes. This sometimes caused confusion in regions where taxes apply.

payment-table

To address this, the payments list now displays the Gross amount, including all applicable taxes, giving a clearer picture of the total transaction value.

New Filter to Customize Checkout Parameters

We've added a new filter checkout/parameters that allows you to customize the checkout parameters.

For example, to force-show the social proofing UI with the billing cycle selector in the Checkout:

my_fs()->add_filter( 'checkout/parameters', function() {
    return array(
        'show_refund_badge'      => true,
        'show_reviews'           => true,
        'billing_cycle_selector' => 'dropdown',
    );
} );

With this filter, the Checkout will load with the corresponding UI.

checkout-customized

Please note that not all parameters can be customized — some may still be overridden by your pricing page configuration. We recommend using this only when generating a custom pricing page or checkout links.

Updated Pricing Page

We've included version 1.3.0 of the pricing page app, which brings the following improvements:

  1. Fixed a bug related to calculating the largest annual discount.
  2. Improved the security and social proofing badges.
pricing-page

If you're not using a custom pricing page, no action is needed. If you are, please review the new release on GitHub to update your fork.

Support for New InstaWP Staging Environment

We now fully support the new InstaWP staging environment. The plugin will automatically switch to safe mode when used in cloned environments. You can read more about it in our documentation.