Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Limit the Number of Posts per Category in Subscription Packages #1484

Open
anik-fahmid opened this issue Oct 1, 2024 · 0 comments

Comments

@anik-fahmid
Copy link

Description: We received a requirement from one of our users to extend the functionality of our subscription features. Currently, the plugin offers the ability to limit the total number of posts and allowed categories in a package. However, the user proposed a feature that will allow users to limit the number of posts per category.

Example Use Case:

  • Users can submit 2 posts in the "Videos" category.
  • Users can submit 5 posts in the "News" category.

Current Behavior:

  • The plugin allows setting the total number of posts allowed in a subscription package.
  • It also allows restricting the categories available for post submission.
  • However, there is no option to limit the number of posts per individual category.

Proposed Behavior:

  • Add a setting in the Subscription to specify the maximum number of posts allowed per category.
  • The package should allow multiple categories, but each category should have an individual post limit defined.
  • If users try to exceed the category-specific post limit, they should be shown a warning or restricted from submitting more posts in that category.

Steps to Reproduce:

  1. Go to WPUF subscription package settings.
  2. Attempt to define a post limit for individual categories (currently not possible).
  3. The post limit can only be applied to the total number of posts, not per category.

Proposed Enhancement:

  • Introduce new fields in the subscription package settings allowing users to define post limits for each selected category.
  • Ensure that the limit applies when users are submitting posts from the front end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants