# How to show plugin custom field on the account plans using the "feature\_limits\_input" function?

**URL:** <https://forum.virtualmin.com/t/how-to-show-plugin-custom-field-on-the-account-plans-using-the-feature-limits-input-function/106082>\
**Category:** Developers\
**Created:** [June 10, 2020, 2:42pm UTC](https://forum.virtualmin.com/t/how-to-show-plugin-custom-field-on-the-account-plans-using-the-feature-limits-input-function/106082 "2020-06-10T14:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cptreptile](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@cptreptile](https://forum.virtualmin.com/u/cptreptile)\
**Post date:** [June 10, 2020, 2:42pm UTC](https://forum.virtualmin.com/t/how-to-show-plugin-custom-field-on-the-account-plans-using-the-feature-limits-input-function/106082/1 "2020-06-10T14:42:42Z")

</div>

I am creating a new plugin that will automatically install CMS per plan uppon a new virtualhost creation.

1. I try the following code but its not returning anything in plan, if i make a mistake in code it does show an error in the plan edit page.

2. What is the correct way/code for creating DB and user for virtualhost in plugin?

---

<div class="post-metadata">

**Author:** ![cptreptile](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@cptreptile](https://forum.virtualmin.com/u/cptreptile)\
**Post date:** [June 10, 2020, 11:30pm UTC](https://forum.virtualmin.com/t/how-to-show-plugin-custom-field-on-the-account-plans-using-the-feature-limits-input-function/106082/2 "2020-06-10T23:30:28Z")

</div>

After many times re-reading the phrase in documentation:

> “…Plugins can define fields that will **appear on the owner limits page** ”

I found the new field added here:  
`administration options > edit owner limits`

It didn’t make much sense as i was expecting the new field to be set on the account plans page (if i can edit it under owner limits, then i must set it somewhere like account plan)

On other documentation page i found this:

> Limits from plans can be changed on a per-virtual-server basis using the **Edit Owner Limits** page, under the **Administration Options** menu category. These will remain in effect until the virtual server’s plan is changed, at which time the new plan settings will override any customization you make here.

So would custom fields appear on the account plans?  
Or is there other way for defining a per plan limit for the new plugin?

Thank you very much in advanced for your reply.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [July 10, 2020, 11:44pm UTC](https://forum.virtualmin.com/t/how-to-show-plugin-custom-field-on-the-account-plans-using-the-feature-limits-input-function/106082/3 "2020-07-10T23:44:11Z")

</div>

Closed on July 10, 2020, 11:44pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
