v6.0.0
2025-05-22
☞ WARNING: major version update, observe possible breaking changes and as always, test thoroughly!
-
Refactored all the deprecated AudiencePlayer API mutations and queries related to voucher validation and
Product/Subscription acquisition (single new mutation: "UserPurchaseStackAcquire").
-
Affected functions (argument changes):
- audienceplayer-core.js::openModalPurchase()
- audienceplayer-core.js::validateVoucherCode()
- audienceplayer-core.js::redeemUserAccountVoucherCode()
-
Affected shortcodes (which trigger the functions mentioned above):
- [audienceplayer_article_detail]
- [audienceplayer_purchase_product_button]
- [audienceplayer_purchase_subscriptions]
- [audienceplayer_user_account]
-
New default translations were added to cover all known voucher error codes.
If you overwrite translations in your own template (e.g. using
"$AudiencePlayerWordpressPlugin->setTranslations([...])"), you might want to add the translations keys
as well if necessary:
- 'dialogue_voucher_code_claim_limit_overflow' : 'The voucher code cannot not be claimed, the
allowed maximum number of claims has been exceeded.'
- 'dialogue_voucher_code_not_claimed' => 'The voucher code cannot not be claimed, likely it has
already been used.'
- 'dialogue_voucher_code_product_intersect_not_allowed' => 'The voucher code cannot be applied to
all of the selected products.'
- 'dialogue_voucher_code_product_not_allowed' => 'The voucher code cannot be claimed in
combination with selected products.'
- 'dialogue_voucher_code_product_type_not_allowed' => 'The voucher code cannot be applied to the
type of one or more selected products.'
- 'dialogue_voucher_code_subscription_not_allowed' => 'The voucher code cannot be claimed in
combination with selected subscription.'
- 'dialogue_voucher_code_usage_not_allowed' => 'Usage of this voucher code is not allowed'
- 'dialogue_voucher_code_user_email_not_allowed' => 'The voucher code cannot be claimed in
combination with your current e-mail address.'
- 'dialogue_voucher_code_user_subscription_not_allowed' => 'The voucher code cannot be claimed in
combination with your already existing subscription.'