diff --git a/packages/join-block/join.php b/packages/join-block/join.php index e7450df..f65da30 100644 --- a/packages/join-block/join.php +++ b/packages/join-block/join.php @@ -3,7 +3,7 @@ /** * Plugin Name: Common Knowledge Join Flow * Description: Common Knowledge join flow plugin. - * Version: 1.4.44 + * Version: 1.4.45 * Author: Common Knowledge * Text Domain: common-knowledge-join-flow * License: GPLv2 or later diff --git a/packages/join-block/readme.txt b/packages/join-block/readme.txt index c27d42f..6326a84 100644 --- a/packages/join-block/readme.txt +++ b/packages/join-block/readme.txt @@ -4,7 +4,7 @@ Tags: membership, subscription, join Contributors: commonknowledgecoop Requires at least: 5.4 Tested up to: 7.0 -Stable tag: 1.4.44 +Stable tag: 1.4.45 Requires PHP: 8.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -107,6 +107,8 @@ Need help? Contact us at [hello@commonknowledge.coop](mailto:hello@commonknowled == Changelog == += 1.4.45 = +* Add optional income guidance: a table of income bands against membership plans on the membership step, switched on by an add-on = 1.4.44 = * Fix: keep members lapsed when they pay an overdue invoice after Stripe has cancelled their subscription = 1.4.43 = diff --git a/packages/join-block/src/Blocks.php b/packages/join-block/src/Blocks.php index c8e4e7d..6d47021 100644 --- a/packages/join-block/src/Blocks.php +++ b/packages/join-block/src/Blocks.php @@ -404,7 +404,7 @@ private static function echoEnvironment($fields, $block_mode) "frequency" => $plan["frequency"], "description" => $plan["description"], "redirectUrl" => $is_supporter_mode ? null : Settings::getMembershipPlanRedirectUrl($plan) - ]; + ] + Settings::getMembershipPlanIncomeBands($plan); } $webhook_url = $fields['custom_webhook_url'] ?? ''; @@ -538,7 +538,7 @@ function ($o) { "USE_STRIPE" => Settings::get("USE_STRIPE"), "USE_VARIABLE_MEMBERSHIP_PLAN" => $fields['use_variable_membership_plan'] ?? false, "WEBHOOK_UUID" => $webhook_uuid ? $webhook_uuid : '', - ]; + ] + Settings::getIncomeGuidanceEnv(); ?>