Improved premium version upgrade handling, custom parent menu slug for tabs, PHP 8.2 compatibility & UI fixes
LatestWe are glad to announce the immediate availability of v2.11.0 of our SDK. Please read below for the details.
Support for custom parent menu slug for tabs
Traditionally, our SDK had the integration option to add menu items with tabs to the admin.php slug. But we realized that in some cases, the plugin developer would want to add custom menu items under custom post types or under completely custom parents, for example, WooCommerce or Gravity Forms.
So we introduced a new filter enable_cpt_advanced_menu_logic
, which when enabled, will try to detect the parent slug smartly, instead of assuming it to be admin.php
. To use it, simply add this after the integration code:
my_fs()->add_filter( 'enable_cpt_advanced_menu_logic', '__return_true' );
Right now we consider this feature beta, hence it is put behind the custom filter. Once we have tested it across many use cases, we will consider removing the filter.
Improved premium version upgrade process
We noticed a regression in the upgrade process of premium versions, where if the SDK location was changed, the WordPress UI would show an error message. While this did not break any functionality, it caused confusion among the users. This has now been fixed.
If you want to change the SDK location, please stay tuned as we release documentation on how to do that properly, without causing errors.
Improvements to the SDK’s latest version detection mechanism
Our SDK comes with a mechanism where it loads the latest version of itself for all plugins and themes which are using Freemius. With the recent changes to support composer and auto-loading, we noticed a small regression for PHP 8.2, where some notice or, in some cases, a fatal error could be thrown. The issue has been fixed.
Other changes
- The pricing page app is updated to the latest version which reduces the bundle size.
- All known PHP 8.2-related issues have been resolved.
- Some UI appearance has been improved.