Closed sapayth closed 4 weeks ago
The changes introduce significant enhancements to the subscription management system across multiple files. Key modifications include the addition of a new meta field for handling custom post type options, improved logic for managing non-recurring subscriptions, and refined validation for form submissions. These updates aim to provide a more structured and flexible approach to subscription data handling and user interactions.
Files | Change Summary |
---|---|
assets/js/stores/subscription.js | Updated modifyCurrentSubscription method to include a conditional check for meta_value type, ensuring consistent handling of subscription data. |
class/subscription.php | Introduced additional_cpt_options meta field in get_subscription_meta and save_form_meta methods, updated insert_free_pack_subscribers and enhanced non-recurring subscription methods. |
includes/Admin/Admin_Subscription.php | Modified third_party_cpt_options and enqueue_admin_scripts methods for improved data storage and script handling, refined logic in profile_subscription_update . |
includes/Ajax/Frontend_Form_Ajax.php | Introduced $form_fields property, expanded submit_post method to include content restrictions and improved handling of guest posts and subscription pack checks. |
includes/Api/Subscription.php | Updated create_or_update_item method to handle additional_cpt_options , enhancing subscription management capabilities. |
includes/Traits/TaxableTrait.php | Enhanced tax calculation methods to ensure robust handling of tax rates and defaults. |
includes/User_Subscription.php | Introduced $additional_cpt_options in add_pack method for improved handling of subscription packs and expiration settings. |
Objective | Addressed | Explanation |
---|---|---|
Fix publish time input option in the Date/Time field ( #637 ) | β | Unclear if changes directly address this issue. |
bug
, needs: developer feedback
π In the meadow where subscriptions grow,
New fields sprout, as updates flow.
With options added, and logic refined,
A brighter path for users we find.
Hooray for the changes, letβs hop with glee,
For a smoother journey, just wait and see! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issue still exists. Please check the video @sapayth vai
fixes #637
Description: In the revamped Subscriptions Module of WP User Frontend, we previously handled a number of additional options originating from other plugins (e.g., the number of events for Event Calendar). However, after the recent update, while the previously supported options continue to work, new additional options generated from other plugins are not functioning as expected.
Current Behavior:
Expected Behavior:
Steps to Reproduce:
Proposed Enhancement:
Summary by CodeRabbit
Release Notes
New Features
additional_cpt_options
, allowing for more flexible metadata handling.Bug Fixes
Improvements