Skip to main content

Best practices for plugin user settings

Comments

5 comments

  • 24x7server
    Hi, I think you can use WHMAPI2 for this job, but you will have to do your customization on this. If you could provide more information with an example, it would be better to have all of us understand the scenario better..
    0
  • CloudNexus
    All right, my bad (sorry for the lack of examples) Basically I'm building a feature that can be enabled on a per-account basis. Since this plugin is housed both in WHM (for enabling/disabling) and CPanel I need a way to share info between the two. I was wondering whether there is a simple way to store "settings" (a key value store or something) that I can use. If not I have to roll my own, which is fine but since I'm very new to developing for WHM/Cpanel I'm asking :)
    0
  • CloudNexus
    I ended up reading the developer documentation you linked me to, and I've opted for the package extensions to store 'information' on users' accounts. After a few weeks of building and reading the docs this question might've been a bit premature. Got the answers, thanks!
    0
  • cPanelLauren
    Hi @CloudNexus I'm glad to hear it helped and that you got the answers you were looking for in the documentation! Thanks for letting us know :)
    0

Please sign in to leave a comment.