• Resolved kingofsquirrel

    (@kingofsquirrel)


    Hello!

    I am very new to ARMember and WordPress in general and still trying to figure everything out. I’m searching for the right plugin to use for my website and so far ARMember seems amazing.

    However, I will offer a subscription that will allow a user to use my service a certain number of times, for the sake of this post let’s just say 100 times.

    So, I would like to add a custom variable to every user that I can change through code. However, it shouldn’t be a custom field during the sign-up process, because I don’t know yet how many times the user will be able to use my service (depends on which plan they purchase) and I also don’t want the user to be able to set the number of times they use it on their own.

    Of course, all of this could theoretically also be achieved by basically “cloning” every user and then assigning a custom variable, however since as I said I’m quite new I’d like it to be as simple as possible, even integrated into ARMember if possible.

    Thanks so much in advance for your help, I really appreciate it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ankur Chotai

    (@reputeinfosystems)

    Hello,

    Thank you for appreciating ARMember plugin.

    As I understood from your request, you want to member to allow maximum number of plan purchase/service. If so then, ARMember does provide a facility to allow to purchase membership plan infinitely so, unfortunately curretnly it will not possible to restrict them after x number of time, purchase will not allowed to member.

    You can validate it using available API action hook ‘arm_after_setup_form_validate_action’ according to your requirements from the code file.

    For more information, please refer ARMember developer API: https://www.armemberplugin.com/developer-api/#accordion_item-74

    Thanks

    Thread Starter kingofsquirrel

    (@kingofsquirrel)

    Hello again,

    Thank you for your response, but that’s not exactly what I was looking for. I’ll try to explain my situation better:

    The Plan/service should only be purchased once, it is a subscription.
    However, I want to add a custom variable to every single user.
    So just like username is saved somewhere, email, password and everything else is saved, I’d like to create a custom variable by editing the plugin’s files.

    My question is how I would be able to add such a variable to a user? Where is the file located where all the variables are listed and do I need to add it somewhere else as well for the logic to work?

    I hope this explains it better. Thank you very much for responding though.

    Best regards,
    kingofsquirrel

    Plugin Author Ankur Chotai

    (@reputeinfosystems)

    Hello,

    As I understood from your request you want to allow user to service/page/post to user x number of time. If so then, you can change from core/classes/class.arm_restriction.php code file you can add custom code according to your requirements. Please let me know if there is anything else.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add custom variables to users’ is closed to new replies.