From 5959d4d24f1a27e0f9cc0c73174ffff594218aef Mon Sep 17 00:00:00 2001 From: Daniele Alessandra Date: Thu, 28 Aug 2025 16:12:40 +0200 Subject: [PATCH 1/2] Added show_pending=true to activation request if user provided a license key --- includes/class-freemius.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/class-freemius.php b/includes/class-freemius.php index 5ee9bc99..f7d86281 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -17209,6 +17209,10 @@ function opt_in( $params['is_extensions_tracking_allowed'] = FS_Permission_Manager::instance( $this )->is_extensions_tracking_allowed(); $params['is_diagnostic_tracking_allowed'] = FS_Permission_Manager::instance( $this )->is_diagnostic_tracking_allowed(); + // We want to allow people activating license on unpublished plugins if they are using a license key + if ( ! empty($license_key)) + $params['show_pending'] = true; + $request = array( 'method' => 'POST', 'body' => $params, From d720a74bcc93012f47baa57440e62af8c45eafb2 Mon Sep 17 00:00:00 2001 From: Daniele Alessandra Date: Fri, 29 Aug 2025 15:59:21 +0200 Subject: [PATCH 2/2] Added a message to add-ons page to inform developer that some add-on may not be visible --- templates/add-ons.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/templates/add-ons.php b/templates/add-ons.php index d4078f0c..a924f335 100755 --- a/templates/add-ons.php +++ b/templates/add-ons.php @@ -50,7 +50,28 @@ do_action( 'addons/after_title' ) ?> -
+ has_secret_key()) : + $integration_url = 'https://dashboard.freemius.com/#!/live/plugins/' . $fs->get_id() . '/integration/'; + $secret_const = 'WP_FS__' . $slug . '_SECRET_KEY'; + ?> +
+ You have enabled WP_FS__DEV_MODE, but no secret key is defined for this plugin. As a result, add-ons that are not publicly released yet, or that do not have publicly visible pricing, will not appear in the list below.

+

To configure your development environment properly, add the %s constant to your wp-config.php, then reload this page. + %s

', + $secret_const, + esc_url( $integration_url ), + esc_html( fs_text_inline( 'Read the integration guide', 'read-integration-guide', $slug ) ) + ); ?> +
+ + + +