Support » Fixing WordPress » Way to limit number of pages?
3 years, 5 months ago
Is there a way to limit the number of pages that can be created?
Thanks in advance
If you are worried about someone creating a page, just make sure that they have a role where they can’t create a page.
To allow someone to create pages, but only a limited number of them, you could write PHP code that checks the number of pages and allows new pages to be published only if there are not too many already. Perhaps there is an existing plugin for that.
These are a good start. I’m not sure I’ll be able to do the PHP code myself, but I’ll begin to research it. Thanks for the feedback, and any other suggestion is welcome.