Skip to content

v1.6.1 — Freemius-compatible uninstall handler

Choose a tag to compare

@wpacademy wpacademy released this 26 May 15:23
· 922 commits to main since this release

Freemius-compatible uninstall handler + branded pricing screen

Cleanup release required by Freemius's plugin validator. When Freemius is integrated, the plugin's uninstall.php file must be removed and option cleanup must run through the SDK's after_uninstall hook instead, so Freemius's own uninstall flow and the plugin's cleanup execute in the right order. This release also wraps the Freemius pricing screen with EMCP Tools-branded chrome.

Changed

  • uninstall.php removed. Option cleanup now runs via emcp_pro_fs()->add_action( 'after_uninstall', 'elementor_mcp_after_uninstall' ) registered in the plugin bootstrap.

Added

  • Two missing options now cleaned up on uninstall: elementor_mcp_low_tool_mode and elementor_mcp_defaults_applied. Both were introduced in 1.6.0 but were never added to the original uninstall.php cleanup list.
  • Branded chrome around the Freemius pricing screen via Freemius's templates/pricing.php filter. A gradient header that matches the EMCP Tools admin pages, a feature highlights card above the pricing iframe, and a collapsible FAQ + contact link below it. The pricing iframe itself is cross-origin and remains styled by Freemius's dashboard branding settings.

Upgrade notes

No behavior changes during normal use — uninstall changes only affect what happens when the plugin is removed. Recommended for everyone, required if you're submitting the plugin to Freemius (which rejects builds with an uninstall.php file present).