Support » Fixing WordPress » Pages/posts creation limit

  • Dear WordPress

    How to set limit to page and post creation to any number (say 15) using codes (for the purpose of user/client dashboard)? Without using any plugin


    • This topic was modified 3 years, 11 months ago by Dhruba Nandi.
Viewing 1 replies (of 1 total)
  • Since WordPress core does not do this, and you should never change WordPress core directly, it is best to use a plugin for new functionality, even if you write it yourself.
    You would likely need to attach your code to the edit page hook, and count the posts already existing, redirecting to the dashboard if the limit is reached.

Viewing 1 replies (of 1 total)
  • The topic ‘Pages/posts creation limit’ is closed to new replies.