someone knows how to limit the number of blogs creation in a wordpress multisite? (3.6.1).
In the wordpress plugins repository there is this plugin, but It doesn’t work, I think it’s not up to date.
Any suggestion would be appreciated, thank you very much.
The signup page has validation hooks. How about something like this?
This is what I’d do.
Use this add action:
And every time a user creates a Blog to check the current blog count get_blog_count() and if it’s less to reverse the action.
This way you can do an overall limit or limit by user.
Ok, I solved in this manner.
I can’t say if it’s the best practice, but this solution fit my needs.
Note: this action doesn’t change the active_signup value stored in the database!